且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我想在wpf windows主机窗体中保留windows窗体的样式。

更新时间:2023-12-06 09:45:10

您需要致电 EnableVisualStyles 方法 [ ^ ]



如何:在混合应用程序中启用视觉样式 [ ^ ]

Hello every one. When i open a windows form in wpf windows host form the style of the form and buttons changes, I want to preserve the actual styles of buttons ,How can I do that?

You need to call the EnableVisualStyles method[^] when the WPF window is loaded.

How to: Enable Visual Styles in a Hybrid Application[^]