【发布时间】:2012-02-02 16:12:54
【问题描述】:
对于 XAML 中的样式,我需要这样的东西:
<Application.Resources>
#if DEBUG
<Style TargetType="{x:Type ToolTip}">
<Setter Property="FontFamily" Value="Arial"/>
<Setter Property="FlowDirection" Value="LeftToRight"/>
</Style>
#else
<Style TargetType="{x:Type ToolTip}">
<Setter Property="FontFamily" Value="Tahoma"/>
<Setter Property="FlowDirection" Value="RightToLeft"/>
</Style>
#endif
</Application.Resources>
【问题讨论】:
-
我需要在调试模式下有不同的风格,这样我才能在调试模式下更轻松地执行。