Animated Expander Header Properties

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 12 years ago by Andy Ver Murlen
Version: 11.2.0552
Avatar

What happened to the Header properties (HeaderBackgourndNormal, HeaderBackgroundMouseHover, etc) in the Animated Expander?  It seems awfully difficult to chnage the dafaults now.

Comments (1)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Andy,

As part of our themes overhaul, these properties were removed. Ultimately, they get out of hand as more and more "states" are added. For example, if we needed a HoverExpanded or HoverCollapsed state then we had to add 4 new properties (at a minimum) for each new state. In addition, we wanted to be able to apply the same Style to both Expander and AnimatedExpander, with the latter being animated by default, as part of our native themes.

Finally, we wanted to consolidate brushes across our product styles and the native control styles. So you can easily give all "list" controls, which includes ListBox, ListView, GridView, TreeView, PropertyGrid, etc, a Red border. So instead of having numerous different brushes, there is one common property.

We document all the breaking changes in our help file. But in this case, the brushes used for the Expander header are defined in our AssetResourceKeys class and begin with ExpanderHeader*. So you could change the Normal Background like so:

xmlns:themes="clr-namespace:ActiproSoftware.Windows.Themes"

<SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.ExpanderHeaderBackgroundNormalBrushKey}"
    themes:TintGroup.Name="Expander" Color="Red" />


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.