DataTrigger

DataTrigger
 <ListView Name="lvStatus" MinHeight="120" Grid.Row="2">

            <ListView.Resources>
                <Style TargetType="ListViewItem">
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Path=Staff}" Value="Total">
                            <Setter Property="FontSize" Value="14" />
                            <Setter Property="FontWeight" Value="Bold" />
                            <Setter Property="Background" Value="AliceBlue" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </ListView.Resources>
            <ListView.View>
                <GridView>
                    <GridView.Columns>
                        <GridViewColumn Header="Staff" Width="150" DisplayMemberBinding="{Binding Staff}">
DataTrigger

DataTrigger

上一篇:Is the Information Reliable?(差分约束)


下一篇:交大课程MA430-偏微分方程续论之总结