Kokoliko
Kokoliko

Reputation: 23

Dragablz tabablzcontrol

How can I fix that problem?

I am using Dragablz tab controls in a WPF project. If tab header's font size is too big, it will disappear. Need some padding? Margin?

enter image description here

Upvotes: 2

Views: 3618

Answers (1)

James Willock
James Willock

Reputation: 2037

As the Material Design theme for Dragablz is set according to the standard Material Design font size, you need to adjust the tab header item style to account for your larger font size. Where you setup your Dragablz style (probably in your App.xaml), do this:

<Style TargetType="{x:Type dragablz:TabablzControl}" BasedOn="{StaticResource MaterialDesignTabablzControlStyle}">
    <Setter Property="ItemContainerStyle">
        <Setter.Value>
            <Style TargetType="dragablz:DragablzItem" BasedOn="{StaticResource MaterialDesignDragableTabItemStyle}">
                <Setter Property="Height" Value="120" />
            </Style>
        </Setter.Value>
    </Setter>
</Style>

Upvotes: 6

Related Questions