2014-09-02 33 views
0

您好我是DevExpress以及Wpf的新手,我想知道是否有任何方法可以自定义Wpf调度程序控件的外观?要么改变主题,要么创建和应用自定义主题是可能的?DevExpress Wpf调度主题

回答

1

是的,这是可能的。您可以使用ThemeManager.ThemeName附加属性。

Window

<Window 
    ... 
    dx:ThemeManager.ThemeName="Office2007Black"> 
    <Grid> 
     ... 
     <dxsch:SchedulerControl ... > 
     </dxsch:SchedulerControl> 
     ... 
    </Grid> 
</Window> 

对于Scheduler本身:

<dxsch:SchedulerControl ... dx:ThemeManager.ThemeName="Office2007Black"> 
</dxsch:SchedulerControl> 

在代码:

ThemeManager.SetTheme(schedulerControl1, new Theme("Metropolis Dark")); 

您可以使用predefined themes或创建自己的。

+0

我使用DevExprees(DevExpress 2010.2)的旧版本,我找不到14.1版本中的一些主题。有什么方法可以使用v14附带的主题? – Arti 2014-09-03 06:49:39

+0

@ user1650891我不知道。试着将这个问题提交给DevExpress支持。也许他们可以帮助你。 – nempoBu4 2014-09-03 06:53:20

+0

好的,谢谢:-) – Arti 2014-09-03 06:55:28