c# - WinForms Dialogs in WPF Application: Controls look like .NET 2.0 -
I have a WinForms application and it started to convert to WPF. To work less, I thought the old dialogue window should be WinForms. VS2010- In the designer the dialog looks normal (with .NET 3.5 / 4.0 controls), but if I run my program all WinForms controls become an old style and it seems. NET 2.0 (I think you know what I mean, that Bevel style for all the gray controls ...)
What happens there? Any way to fix this?
You must call System.Windows.Forms.Application. EnableVisualStyles ()
to enable the system style for windows forms; WinForms project templates are called by default; The WPF template is unavailable because it does not require WPF control.
Comments
Post a Comment