Silverlight windows application c#




















Asked 9 years, 8 months ago. Active 8 years, 2 months ago. Viewed 3k times. I read that we can do that by using NavigationService. Improve this question. Add a comment. Active Oldest Votes. Improve this answer. Mark Monster Mark Monster 3 3 silver badges 10 10 bronze badges. Is there any Alternative to it so that NavigationService.

GoBack , will not throw an exception. As I said, why do you want to programmatically exit the application? I am checking for Network and then exiting. None; if! GoBack — phanish. I would recommend showing a message instead. The user won't know the reason why the app was closed and has a feeling it crashed, after a couple of crashes the user will be sure to uninstall that 'crappy' app.

Even though your intention was to close it, because it's unusable without internet, the user will not have that feeling. Then just exit your function: NavigationService. I don't know whether I am wrong or right, as my superiors told me that in Silverlight5 we can develop Windows based application.

Can any body help me to give a clue for how to start. Any help would be highly appreciated. If you mean a Windows based application which can connect with internet you go for Out of Browser application which silverlight supports but if you want simple plain desktop application, there is no point in using Silverlight, WPF would be the right choice in that case. Look at this article for building an out of browser app using Silverlight.

You can run silverlight apps "Out Of Browser", its just a setting in the config. Now, that being said, you CAN write silverlight apps that run out of the browser.

However, you can also make WPF apps that run in a browser. Confused yet? The bottom line is that WPF is for desktop apps and is full-featured with access to the machine resources. Like all good things, the answer is "it depends on what you're trying to do".

If you want an application that can run inside the browser, outside the browser, plus on Windows and Mac then Silverlight is the answer. Silverlight out of browser applications also have a nice "phone home" feature that will automatically download updates; WPF requires you to roll this by hand. Stay away from this error prone steaming pile of stuff. It's good for demoware, but is not something which you'd want to support. This is called "out of browser" :. Silverlight-based applications typically run within Web pages, but you can enable users to install them from the Web and run them outside the browser.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Microsoft Silverlight will reach end of support after October Learn more.

Namespace: System. Windows Assembly: System. Windows in System. Type: System. When setting this property, the specified value is not an instance of a class that derives from UIElement.



0コメント

  • 1000 / 1000