C
C#2y ago
Jexs

❔ question about this article

In this article in the second paragraph It says “The single most important difference between WinForms and WPF is the fact that while WinForms is simply a layer on top of the standard Windows controls (e.g. a TextBox), WPF is built from scratch and doesn't rely on standard Windows controls in almost all situations. This might seem like a subtle difference, but it really isn't, which you will definitely notice if you have ever worked with a framework that depends on Win32/WinAPI.” Are the controls the buttons you drag and drop onto the GUI screen ?
17 Replies
Jexs
JexsOP2y ago
https://wpf-tutorial.com That’s the article
phaseshift
phaseshift2y ago
It's not talking about the toolbox. UI controls are check boxes, radio buttons, frames, text boxes, buttons, menus, drop-downs...
Jexs
JexsOP2y ago
Thank you ! When they say “while WinForms is simply a layer on top of the standard Windows controls” is that layer anything like <grid></grid> “ what is this layer that there talking about when they bring up winform as a layer is it syntax thing ? I hope you can understand this question
phaseshift
phaseshift2y ago
It means you use win forms, win forms uses pre existing win controls
Anchy
Anchy2y ago
by layer I'm pretty sure it's talking about an abstraction layer
Jexs
JexsOP2y ago
When opening a win form template do I choose the Windows form app or the windows form app (.NET Framework) I wanna open both Winform and wpf and look at this layer (trying to see the difference between the two)
Anchy
Anchy2y ago
I would skip windows forms and use WPF instead, but if you want the most up-to-date .NET you would choose the Windows Forms App template
Jexs
JexsOP2y ago
That’s what I’m going with yes I’m new to wpf and the win form thing I want to see the different between the two
Anchy
Anchy2y ago
on the surface it will probably be hard to see the difference in the abstraction layer that the article is referring to
Jexs
JexsOP2y ago
Oh really 😦
Anchy
Anchy2y ago
the main difference between the two that will become immediately apparent would be the xaml styling
Jexs
JexsOP2y ago
Does it just come down to that one has xmal and the other doesn’t ?
Anchy
Anchy2y ago
no, there are some fundamental differences for WPF like hardware accelerated controls, data binding, hot-reloading ui, it has a lot easier learning curve when it comes to styling (xaml styling over OnPaint overrides) WPF is also a lot more responsive, including being DPI aware im sure there's even more stuff, but I don't use it professionally so that's all I can think of at the moment
Jexs
JexsOP2y ago
I’m new to wpf thanks for your information
realivanjxツ
realivanjxツ2y ago
if you take a look in this video, the textbox control has the new win 11 style where if you were to use wpf it will still look the old way https://youtu.be/hcmeODry_QU?t=183
Tommy Ngo
YouTube
Creating C# / WinForm Application in Windows 11 | Software Coding T...
Today, I will walk you through the process of creating a C# / WinForm Application in Windows 11. This will be a simple application, but my main focus is to demonstrate to you the "look and feel" of the application. Also, I will walk you through the application's behavior. So, please stick around (if you're interested) and watch this awesome t...
realivanjxツ
realivanjxツ2y ago
wpf has its own style where winforms will follow the OS
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server