1
我可以知道如何使用imagebrush設置Datagrid Header背景嗎?我知道如何設置背景顏色(如代碼片段)。但我需要知道如何對圖像刷?有什麼建議?由於如何將imageBrush應用於datagrid標題背景?
P/S:我發現了一個sample在這裏,但不工作.....
XAML代碼片段:
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="Background" Value="Yellow"/>
</Style>
</DataGrid.Resources>
thx clemens !! +1 C = – 0070