I wanted to know if there is any difference between the applications developed using WPF and Winform applications in terms of windows. Does both types of applications considered same in windows operating system and it is just the way they are developed ? OR There are some fundamental difference between them when it comes down on how each application window and its children are drawn on the screen.
I am particularly interested to know
I am not looking for the information about how we do development in WPF or WF, or there is XAML in WPF where we specify what UI elements we need and how we need them.
The answer is yes. If you are running an application in windows and you spawn a new window, windows messages are involved. This is how the operating system notifies your application of event. This is common desktop behavior and is just how windows works.
WPF acts slightly differently in response to the render events due to the rendering method (the name of which i forget...). WPF makes use of directx to draw to a graphics surface that is bound to a windows client area. Winforms draws to a GDI+ surface provided by windows.
Retrieving the window handle and subscribing to additional (usb device changed, etc) window messages is different™ and requires a bit of fiddling.
UI automation works how you would expect but expect slightly different control names and much deeper graphs than you often get in winforms.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With