0
我正在查看將標記放置在我的DataGrid的垂直滾動條上。他們將顯示選擇的項目。如何更改DataGrid上垂直滾動條的模板
我看到的這怎麼會用一個單一的水平滾動條來實現和添加內容控制here
所以我的問題是我怎麼能添加到這個垂直滾動條明確的答案?
我可以使用圖嵌套樣式或DataGrid.Resources,但如何得到實際的垂直滾動條?我希望所有東西都是標準的,但是要加入內容控制。如果有人可以幫助我到垂直滾動條控件模板,我已經有了DataGrid樣式,如果有幫助,或者可以通過DataGrid.Resources?!
這裏是我的DataGrid:
<DataGrid Name="GenericDataGrid" Background="Transparent"
BorderThickness="0"
CanUserReorderColumns="True"
AutoGenerateColumns="False"
ItemsSource="{Binding UserCollection}"
HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
CanUserAddRows="False">
<DataGrid.Resources>
</DataGrid.Resources>
這裏的風格:
<Style TargetType="{x:Type DataGrid}" >
<Setter Property="RowHeaderWidth" Value="25" />
<Setter Property="HorizontalGridLinesBrush" Value="Transparent" />
<Setter Property="VerticalGridLinesBrush" Value="DimGray" />
<Setter Property="RowBackground" Value="{StaticResource RowBrush}"></Setter>
<Setter Property="AlternatingRowBackground" Value="White"></Setter>
</Style>