TreeListControl:设置行样式

TreeListControl:设置行样式
<Style x:Key="OddEvenRowStyle" TargetType="{x:Type dxg:GridRowContent}">

    <!--Row Normal-->
    <Setter Property="TextBlock.Foreground" Value="#AAAAAA"/>
    <Setter Property="BorderBrush" Value="#555555" />
    <Style.Triggers>
        <MultiDataTrigger>
            <MultiDataTrigger.Conditions>
                <Condition Binding="{Binding Path=EvenRow}" Value="False"/>
                <Condition Binding="{Binding Path=SelectionState}" Value="None"/>
            </MultiDataTrigger.Conditions>
            <Setter Property="Background" Value="{StaticResource evenRowBrush}" />
        </MultiDataTrigger>
        <MultiDataTrigger>
            <MultiDataTrigger.Conditions>
                <Condition Binding="{Binding Path=EvenRow}" Value="True"/>
                <Condition Binding="{Binding Path=SelectionState}" Value="None"/>
            </MultiDataTrigger.Conditions>
            <Setter Property="Background" Value="{StaticResource oddRowBrush}" />
        </MultiDataTrigger>
        <!--Row Selected-->
        <Trigger Property="dxg:DataViewBase.IsFocusedRow" Value="true">
            <Setter Property="TextBlock.Foreground" Value="#CCCCCC" />
            <Setter Property="Background" Value="#494949" />
        </Trigger>
        <DataTrigger Binding="{Binding Path=SelectionState}" Value="Selected">
            <Setter Property="Background" Value="Lime" />
        </DataTrigger>
    </Style.Triggers>
</Style>
TreeListControl:设置行样式

TreeListControl:设置行样式

上一篇:GridControl


下一篇:十进制快速幂