Questions tagged [visualstatemanager]

Manages visual states and the logic for transitions between visual states for controls. Also provides the attached property support for VisualStateManager.VisualStateGroups, which is how you define visual states in XAML for a control template.

Manages visual states and the logic for transitions between visual states for controls. Also provides the attached property support for VisualStateManager.VisualStateGroups, which is how you define visual states in XAML for a control template.

More detailed overview at MSDN

382 questions
3
votes
0 answers

VisualState in abstract control

I have an abstract BaseControl that contains dependency properties as well as default style and VisualState. I would like to use these VisualState in inherited Controls. I understand that setting the Template of the inherited control does not enable…
3
votes
2 answers

Why does the DataStateBehavior not update initially?

I have bound a ListBox to my ViewModel including the ListBox.SelectedItem. I want to change a visual state depending on if there is one selected or not, but The following doesn't update the state initially, so it stays in the wrong…
Markus Hütter
  • 7,796
  • 1
  • 36
  • 63
3
votes
1 answer

Error using StaticResource as Storyboard for a VisualTransition

I have a VisualTransition inside of a VisualStateGroup for a Button control. The Storyboard property is bound to a StaticResource Storyboard:
Riggs
  • 121
  • 5
3
votes
1 answer

How to programatically change the visual state in silverlight

I have the following code (it's just the Blend ControlTemplate of a ListBoxItem plus two new states and an event handler to ease the example): xaml:
3
votes
2 answers

How to alter a visual state of a ControlTemplate without replacing it?

I want to define a ToggleButton that appears with red foreground (for example) when checked, rather than the default appearance of a pressed button. I see that the visual states are maintained as named elements inside the ToggleButton's…
3
votes
3 answers

Set button as selected state and change style

This is my actual button style: