【发布时间】:2015-02-09 07:10:47
【问题描述】:
我需要自定义我的 WinForms 应用程序。 我在设计器中使用了 SkinRibbonGalleryBar-item 来更改运行时的布局,例如更改为“Devexpress Dark Style”。 但是如何在开发时更改该布局? 这样就没有对话框可供选择,而是从一开始就设置了样式?
【问题讨论】:
标签: c# winforms layout devexpress
我需要自定义我的 WinForms 应用程序。 我在设计器中使用了 SkinRibbonGalleryBar-item 来更改运行时的布局,例如更改为“Devexpress Dark Style”。 但是如何在开发时更改该布局? 这样就没有对话框可供选择,而是从一开始就设置了样式?
【问题讨论】:
标签: c# winforms layout devexpress
using DevExpress.LookAndFeel;
{
// Access the Default LookAndFeel.
UserLookAndFeel defaultLF = UserLookAndFeel.Default;
// Ensure that the Office2003 painting scheme will be used.
defaultLF.UseWindowsXPTheme = false;
defaultLF.Style = LookAndFeelStyle.Office2003;
// Ensure that the Default LookAndFeel will be applied.
xtraTabControl1.LookAndFeel.UseDefaultLookAndFeel = true;
// Remove the Parent LookAndFeel (if any).
xtraTabControl1.LookAndFeel.ParentLookAndFeel = null;
}
使用外观可能会有所帮助参考:https://documentation.devexpress.com/#windowsforms/CustomDocument2412
【讨论】: