Questions tagged [visualstates]

107 questions
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
1 answer

How to change templated control's properties from VisualState?

If I define VisualStates from within a control template, is it possible to change the properties of the templated control itself from a storyboard? Here's a quick example:
Seabass__
  • 871
  • 2
  • 7
  • 19
2
votes
1 answer

Silverlight: How to Create a VisualState for a Templated / Custom Control

I'm trying to create a templated/custom control in Silverlight. The base control can be a System.Windows.Controls.Button. The button has the following visual states: