Host WPF Application online with Databinding - c#

3 months ago i developed a WPF Application offline,and now i need to host this Application online.
This app gets the function to Add,Edit,Delete,Search (and so on ...) records in the database so it use a Databinding and now i need to host it online so the client can connect on the web to insert or update the data .
Can you suggest me which is the best way to host my App online using the Databinding?
Thanks so much for your attention.
..if you need more details don't hesitate to ask me . :)
Cheers

It sounds as though you'd want to convert your WPF application to Silverlight. Silverlight applications run in the browser, and contain a large subset of the WPF features, including XAML and Databinding.
While it's usually not an exact 1:1 port from WPF to Silverlite, it's close. There are many resources on the topic if you Google "Converting WPF to Silverlight".

If you've used MVVM or its ilk you might be able to get away with just modifying your .XAML files without having to alter the .cs behind the view. Googling around suggests many people have had to completely rewrite their views though, here is a walkthrough by someone who's been through the process of converting their WPF app to Silverlight.

Related

c# Gui Update from Realtime-System nice Solution ? What Pattern?

i'm looking for a nice solution on my Application. For Backgroundinformations:
i've got a real-time System in c++ on Linux. And i've a Winforms Application (soon WPF) on a Windows XP (soon Windows 7). The Communication is an TCP-IP Stream.
My Solution now is a Gui-Timer that updates the Gui with the Data from the ReaTime-System every Tick.
I think thats not a clean Solution. I want to make it better. But i dont know how.
Can you help me or can you give me a keyword that a can search it by myselfe ?
The Gui dont need to me real-time.
Thanks in advance.
Nice Wishes
Manuel
Only for WPF: The binding system of WPF is perfect in your case. All you have to do is to bind your code or data to controls and WPF updates if the bound data is updated.
See http://wpftutorial.net/DataBindingOverview.html for more information.

Changes required in existing Web Application to access in Smart phones/Tablet computer

I have a ASP.NET Web Application. I want to access this application in Smart phones and tablet computer. So please help me on this. What are the changes required?
The answer to your question could range from nothing to everything. At the end of the day, it all depends on what you existing app looks like in a target mobile device (iPad, Android, etc). If your existing app looks and functions properly, then you don't have to do anything. If not, well, you figure out what's wrong and make it work.
Your question really isn't suited for StackOverflow because it is way to broad and impossible to answer.
Asp.net applications can run in web browsers, including the ones that come with smart phones and tablets. The main concern would be the various screen sizes of the various devices. Because they vary so much, a good design concept for your asp.net application would be to layout content in a way it can adapt to the screen size.
The best technology for this within an asp.net application, especially for an application that was already built, would be to implement style sheets (.css)
Look at these styles as an example:
float, clear, max-width and max-height
Check these and other styles at: http://www.w3schools.com/css/
Now, there is also the concept of having your asp.net application detect which device is being used and then generate UI code (or load .ascx controls) accordingly to provide device specific displays.
Check:
Request.Browser.IsMobileDevice
Request.UserAgent (http://msdn.microsoft.com/en-us/library/system.web.httprequest.useragent.aspx)
However, I would only suggest using this to a minimum, because if you make a change to your UI, you won’t want to keep updating multiple instances of the UI for different devices.
A good compromise would be to build a style sheet for each group of screen sizes (smart phone, tablet, PC, etc.) and then detect which device is in use and include the respective style sheet.
NB: there are many open source projects, which could get you running more quickly with mobile development in mind. Check sourceforge.net and codeplex.com for examples.

Desktop Application Crawler

Good Morning,
I am looking at the feasibility of generating a Desktop Application Crawler. This application crawler would work in a similar way to a web crawler - it would interrogate the application to obtain a UI structure. To fit with other ongoing projects this would be coded in C#.
The program would be able to get Window and Control properties and generate a list of which controls are present on which Windows.
Is such a thing possible? - I assume it is as projects like Microsoft's UI Spy do a similar job. The output would be a simple XML format.
Thanks in Advance,
JH
Also it not very clear what you exactly mean, but for investigating the content of specified WinsowsApp written in .NET you can use ManagedSpy.
Is you want ot have some mertics information delivered to you in a way of service you can relay one Desk Metrics (they have a free of charge plan too)
If it's not what you're asking for, please clarify.

Quick way to integrate Xaml in asp.net?

I have a WPF/C# application.
It contains some .XAML pages.
i would like to integrate this application into my ASP.NET/C# web application.
I want the application to show in an asp.net page.
What is the best way to do this?
I heard that I can use Silverlight.
I never worked with silverlight before. Can I do it without knowing silverlight or should I have a knowledge in silverlight before doing it?
Any help is greatly appreciated.
Thank you very much
You can either deploy your WPF application as an XBAP or migrate it to Silverlight. I'd recommend the latter because you'll get better browser/os support.
Just create a new Silverlight project and copy your xaml files into it. Probably, everything will be compatible since both frameworks have a lot in common. Silverlight is a bit more restrictive since it's a web framework, but it also has other features that WPF doesn't. If you find something that's not compatible, just search for an alternative here.

Desktop Application - Update Text to website

We have a 5 page website and we are looking to make a desktop application to update parts of the text just 1 or 2 words to start off with , simple change the html word of hello to test from the desktop program.
I know parts of visual basic 2008 but im not a master of it and so i didn't know if that was the best way to go forward or any other programming languages.
Also what would be the best code way to try and update the text on the website
Any websites would be appreciated so i could learn and possibly build on this as this would be something id like to get into
thanks
That's a bit much to answer fully here. I can give you the basic steps and links to resources to help you on your way.
Without going into specifics, you want to do the following:
Create your website using ASP.NET (since you tagged this as .NET)
Save the text that you want to be changeable in a database
Use DataBinding in ASP.NET to retrieve the data from the database to show it on the pages.
there are plenty of videos on how to do this at http://www.asp.net
You'll have to choose between Web Forms and MVC. if you're brand new I won't try to confuse you. WebForms is a bit easier to use if you've never done real web programming before, but MVC is becoming much more popular. Since it sounds like you're new I'm going to recommend you start at http://www.asp.net/web-forms and pay attention to the "Learning Resources" area
Create a Windows Forms application to update the data
there are plenty of videos on how to do this at http://www.windowsclient.net
Technically you could update the data from an ASP.NET application, or even a Visual Studio Lightswitch app, but you specified you wanted to make a Desktop app, which I interperet as being a standard Windows app.
Of course, you'll have to host this website in IIS. I'm assuming you're already doing that...

Categories