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>


ibeautiful
浏览 718回答 3
3回答
打开App,查看更多内容
随时随地看视频慕课网APP