相关疑难解决方法(0)

XAML是否有针对调试模式的条件编译器指令?

对于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>
Run Code Online (Sandbox Code Playgroud)

c# wpf xaml

65
推荐指数
1
解决办法
2万
查看次数

标签 统计

c# ×1

wpf ×1

xaml ×1