Adaptive Triggers in Resource Dictionary
问题 I am trying to have a simple header of the page "adaptively" change the padding value based off of the width of the Page. Namely I have a header TextBlock using a style from a Resource Dictionary as shown below: <Style x:Key="PageHeaderStyle" TargetType="TextBlock"> <Setter Property="FontSize" Value="16" /> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="FontWeight" Value="Bold" /> </Style> In my page now I have a simple TextBlock that uses the Style from the Resource