XAML代码转C#后台代码
<DataGridName="dg_File"Background="#E7F2FF"ScrollViewer.VerticalScrollBarVisibility="...
<DataGrid Name="dg_File" Background="#E7F2FF" ScrollViewer.VerticalScrollBarVisibility="Visible">
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="Background" Value="#E7F2FF"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="LightGray"/>
<Setter Property="Foreground" Value="DarkOrange"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
</DataGrid>
上述XAML代码如何转换成C#后台代码?求高手指点 展开
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="Background" Value="#E7F2FF"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="LightGray"/>
<Setter Property="Foreground" Value="DarkOrange"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
</DataGrid>
上述XAML代码如何转换成C#后台代码?求高手指点 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询