我只是想知道WPF DataGrid是否有Expression Dark主题?
或者如何为WPF DataGrid调整它?
有链接吗?
更新:
可以将WPF DataGrid替换为WPF ListView,并且Expressaion Dark主题应用得很好.
<ListView Name="MainTable" >
<ListView.View>
<GridView>
<GridViewColumn DisplayMemberBinding="{Binding Filename}" Width="140" Header="{lex:LocTextExtension Key=Name, Dict=Resources, Assembly=PreShow.Player}" />
<GridViewColumn DisplayMemberBinding="{Binding IsSuccess}" Width="60" Header="{lex:LocTextExtension Key=Success, Dict=Resources, Assembly=PreShow.Player}" />
<GridViewColumn DisplayMemberBinding="{Binding Downloaded}" Width="140" Header="{lex:LocTextExtension Key=Time, Dict=Resources, Assembly=PreShow.Player}" />
<GridViewColumn DisplayMemberBinding="{Binding IsDownloading}" Width="100" Header="{lex:LocTextExtension Key=IsDownloading, Dict=Resources, Assembly=PreShow.Player}" />
<GridViewColumn DisplayMemberBinding="{Binding URL}" Width="Auto" Header="URL" />
</GridView>
</ListView.View>
</ListView>
Run Code Online (Sandbox Code Playgroud)
Bri*_*now 12
干得好:
http://datagridthemesfromsl.codeplex.com/
WPF DataGrid的可重用主题库,可以像Silverlight DataGrid一样查看和处理.
以ExpressionLight,ExpressionDark,WhistlerBlue等为主题.特征:
- SelectedCells附加属性:将选定单元格绑定到MVVM ViewModel的数据.
- 使用鼠标倾斜滚轮进行水平滚动.
请参阅文档以了解用法.
这个项目纯粹是用代码(XML/XAML和C#)开发的,而不是在某些GUI"设计者"......