I like the theme support for native controls.
Is the native control theme for the Expander the same as AnimatedExpander ?
I would like to change font size/width and forground color and height of header. How would I change this?
Thanks,
Mary
I like the theme support for native controls.
Is the native control theme for the Expander the same as AnimatedExpander ?
I would like to change font size/width and forground color and height of header. How would I change this?
Thanks,
Mary
I decided to use AnimatedExpander instead of Expander. and then add a HeaderTemplate with the font/ padding set.
Hi Mary,
Thanks! Yes, it uses the same native theme template we have for Expander. We have some attached properties you can set. Our defaults are things like:
<Setter Property="themes:HeaderedControlThemeProperties.HeaderCornerRadius" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ExpanderHeaderBorderNormalCornerRadiusKey}}" />
<Setter Property="themes:HeaderedControlThemeProperties.HeaderFontSize" Value="15" />
<Setter Property="themes:HeaderedControlThemeProperties.HeaderPadding" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ExpanderHeaderPaddingNormalThicknessKey}}" />
<Setter Property="themes:HeaderedControlThemeProperties.HeaderStyle" Value="{StaticResource ExpanderAboveHeaderStyle}" />
Please log in to a validated account to post comments.