Home Forums WPF controls Xceed DataGrid for WPF How to override theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26507 |

    Hi there,

    I apply GlassTheme to my grid, but the GroupByControl’s height is not suited for my form. I want to keep the Glass theme but like to override the height of GroupByControl but it doesn’t work. There’s my xaml:

    <xceed:DataGridControl.Resources>
    <Style TargetType=”{x:Type xceed:GroupHeaderControl}”>
    <Setter Property=”MinWidth”
    Value=”{Binding RelativeSource={RelativeSource AncestorType={x:Type ScrollContentPresenter}}, Path=ActualWidth}”/>
    <Setter Property=”MaxHeight” Value=”25″ />
    </Style>
    </xceed:DataGridControl.Resources>

    please help

    Thanks

    Duy Doan

    Imported from legacy forums. Posted by allforum (had 1835 views)

    Xceed Support
    Member
    Post count: 5658

    From the code provided above, the Style’s TargetType should be GroupByControl.

    Also, instead of specifying the MaxHeight, you should set the Height Property.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2886 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.