Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight or WPF for a little winforms/desktop type application?

I have a simple WinForms type application (main form, couple of sub-forms, minimize to system tray with notifications showing here).

I was going to move to WPF however I'm hearing some people say go silverlight (out of browser).

Question - Which way should I go for a simple desktop winforms type app? WPF or Silverlight?

Tks

like image 756
Greg Avatar asked Dec 20 '25 04:12

Greg


1 Answers

It depends on what features you need. If you must minimize to the tray, it'll be easier in WPF. Silverlight, however, supports notification toast for notifications. It's not trayed, but it still works well.

Also note that Silverlight doesn't have floating child windows, so if you need them, you'll need to go WPF. You can get close analogs with the ChildWindow control, but they must stay within the bounds of the Silverlight application as they are ui elements, not real hwnd windows.

Silverlight 4 lets you do almost anything you need using COM automation. However, resist using that for major functionality. If you're targeting just Windows, do a click-once WPF application, preferably WPF4 if your timeline permits it. Reserve COM automation for OS "light-up" functionality in otherwise cross-platform applications.

like image 166
Pete Avatar answered Dec 22 '25 20:12

Pete



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!