Setter Property=Foreground Value=https://vvvtt.com/arti。WPF修改Datagrid列标题与选中状态( 二 )。" />

WPF修改Datagrid列标题与选中状态( 二 )


                </Style>
            </DataGrid.RowStyle>
            <DataGrid.CellStyle>
                <Style TargetType="DataGridCell" >
                    <Setter Property="BorderThickness" Value=https://vvvtt.com/article/"0"/>
                    <Setter Property="Foreground" Value=https://vvvtt.com/article/"#405EAC"/>
                    <Setter Property="FontSize" Value=https://vvvtt.com/article/"25"/>
                    <Setter Property="Height" Value=https://vvvtt.com/article/"50"/>
                    <Style.Triggers>
                        <Trigger Property="IsMouseOver" Value=https://vvvtt.com/article/"True">
                            <Setter Property="Background" Value=https://vvvtt.com/article/"White"/>
                            <!--<Setter Property="Foreground" Value=https://vvvtt.com/article/"White"/>-->
                        </Trigger>
                        <Trigger Property="IsSelected" Value=https://vvvtt.com/article/"True">
                            <Setter Property="Background" Value=https://vvvtt.com/article/"#6495ED"/>
                            <Setter Property="Foreground" Value=https://vvvtt.com/article/"White"/>
                        </Trigger>
                    </Style.Triggers>
                </Style>
【WPF修改Datagrid列标题与选中状态】            </DataGrid.CellStyle>


以上内容就是WPF修改Datagrid列标题与选中状态的内容啦 , 希望对你有所帮助哦!

猜你喜欢