MahApps / MahApps.Metro

A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
https://mahapps.com
MIT License
9.28k stars 2.45k forks source link

TabControl & HeaderFontSize #3711

Closed esso23 closed 4 years ago

esso23 commented 4 years ago

Hello,

Not sure if this should be bug report or feature request because I can't find how exactly the 2.0.0 branch works (like if the features will be the same as in 1.6.5).

Describe the bug Controls:ControlsHelper.HeaderFontSize is no longer present in alpha version for TabControl. I'm using this solution: https://stackoverflow.com/a/31841229/1906905 Worked fine on .NET Framework 4.6.1 with MahApps.Metro 1.6.5.

To Reproduce Use this code:

<TabControl>
            <TabControl.Resources>
                <Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource {x:Type TabItem}}">
                    <Setter Property="Controls:ControlsHelper.HeaderFontSize" Value="14" />
                </Style>
            </TabControl.Resources>
</TabControl>

Environment:

I ported an entire project to MahApps.Metro and this is the only thing that's not compatible.

timunie commented 4 years ago

Hi @esso23 ,

there are a few breaking changes in the prerelease. It is now Controls:HeaderedControlHelper.HeaderFontSize There are now also some more Properties to control the Header. @punker76 is updating the documentation 📝

Happy coding Tim

esso23 commented 4 years ago

Great! Thanks for the info.