我目前正在將我目前的DataGrid
移植到Syncfusion數據網格SfDataGrid
。但我不能找到相反的屬性DataGrid.GroupStyle
這樣我就可以操縱這個代碼SfDataGrid
控制:相當於DataGrid的SfDataGrid GroupStyle?
<DataGrid.GroupStyle>
<GroupStyle>
<GroupStyle.ContainerStyle>
<Style TargetType="{x:Type GroupItem}">
<Setter Property="Margin" Value="0,0,0,5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupItem}">
<Expander IsExpanded="True" Foreground="Black" BorderBrush="#FF002255" BorderThickness="1,1,1,5">
<Expander.Header>
<DockPanel>
<TextBlock Text="{Binding Path=Name}" />
<TextBlock Grid.Column="1" Text="{Binding Path=ItemCount}"/>
</DockPanel>
</Expander.Header>
<Expander.Content>
<ItemsPresenter />
</Expander.Content>
</Expander>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</GroupStyle.ContainerStyle>
</GroupStyle>
</DataGrid.GroupStyle>