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
0
votes
2 answers

Triggers not updating

Here is the psuedo code for what I want to do IF NOT ISDIRTY THEN VISIBILITY EQ VISIBILITY.COLLAPSED IF ISDIRTY AND ISVALID THEN VISIBILITY EQ VISIBILITY.VISIBLE AND COLOR = GREEN IF ISDIRTY AND NOT ISVALID THEN…
Berryl
  • 12,471
  • 22
  • 98
  • 182
0
votes
1 answer

C# VisualStateManager - What is the equivalent in WPF for SelectedPointerOver (in Metro)

I am creating a custom controltemplate for ListBox and I'm having difficulties with the visual states. When using the VisualState MouseOver, it affects all the items including the selected item, which I want to have separate styling. In Metro,…
Wee
  • 278
  • 4
  • 16
0
votes
1 answer

VisualStates: No transition for the first State Change

in my Silverlight 4 application, I have created a custom control and added Visual States incl. transitions. When the state change is executed the first time, there is no transition, only a rapid change from one state to the other (like there is no…
Aaginor
  • 4,516
  • 11
  • 51
  • 75
0
votes
1 answer

VisualState storyboard applies to resource instead of control?

I have a weird problem with a storyboard inside a button visual state manager. I have two buttons with the same style and a specific Foreground. The Path that is the content of the button binds its Fill property to this foreground.
Ronald Wildenberg
  • 31,634
  • 14
  • 90
  • 133
0
votes
1 answer

Applying VisualStateManager to both ControlTemplate and Content

I have restyled a Button using a ControlTemplate in a Style, which contains a VisualStateManager MouseOver state that inverts the Background to Black and the Foreground to White. I then use this styled button to host a Path object with its Fill…
Duncan Watts
  • 1,331
  • 9
  • 26
0
votes
1 answer

DisplayStateBehavior not initially applying state transition in listbox item template

I have a listbox item template that contains visual states. I have DisplayStateBehaviors that set the states to either the on/off states. My implementation only 1/2 works. On initial display, the base state is active, regardless of the value in…
PatrickV
  • 2,057
  • 23
  • 30
-1
votes
1 answer

Get the size of a Windows Store App when navigating to a page

So I recently upgraded and started updating my app for Windows 8.1 With the AplicationViewState being deprecated, I am having a problem getting the current size of the app to determine which layout should be loaded. When I change the size of the…
Joe K
  • 231
  • 7
  • 16
1 2 3
25
26