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

How to change Data of a Path in WPF?

Using Visual state manager, How to change the Data for a Path. i have changed it by ObjectAnimationUsingKeyFrames in Silverlight but the same cant be used in WPF. Below i got an error that cant find the Target property "Data".. Any Idea on this? …
Sankarann
  • 2,625
  • 4
  • 22
  • 59
0
votes
1 answer

ContentControl VisualStateManager

I've a ContentControl which binds it Content to a variable The ContentControl is in my view 'MainPage.xaml' When I click on a Button, the Content of my ContentControl is…
Rudi
  • 926
  • 2
  • 19
  • 38
0
votes
0 answers

Reset of VisualState manager doesn't works

How to reset a silverlight control's visual state back to "Normal" on change of visibility In the above link, the same thing was discussed, though i have some problem with changing the state. I have read an article says that if VS is in a state and…
Sankarann
  • 2,625
  • 4
  • 22
  • 59
0
votes
1 answer

VisualStateManager applys in Visual Studio, but not in the app

I've got a view which looks like this: http://www.imgbox.de/users/public/images/W3pITuCTOw.png As you can see, it's the standard Design. When I click in Visual Studio at 'Snapped', it looks like…
Rudi
  • 926
  • 2
  • 19
  • 38
0
votes
1 answer

Can't reuse style in silverlight 5

I create a custom image button and add some style. everything works fine. But when i try to reuse it in other buttons, it didn't work very well. only 1 button will follow the style, others are always blank. i didn't got any error in runtime. Please…
aiyagaze
  • 884
  • 2
  • 8
  • 14
0
votes
0 answers

Overriding ControlTemplate - VisualState MouseOver is only performed on MouseClick

I have overridden the default Template of a scrollbar. It is simply a Rectangle and a Arrow Picture. I have 2 Pictures one for the Normal State and one for MouseOver. In my VisualStates I change the image visibility on MouseOver. When i now go with…
Mark
  • 3,273
  • 2
  • 36
  • 54
0
votes
1 answer

Switching between static-width and Auto-width with Visual States

I'm having a minor issue with my current app, dealing with visual states and automatic / static widths. Depending on the visual state, a StackPanel either has a width="Auto" or width="400". Blend is telling me I can't animate between these two…
Kris Selbekk
  • 7,438
  • 7
  • 46
  • 73
0
votes
1 answer

VisualState example in c++?

Can someone provide a C++ example for the following equivalent C#? VisualStateManager.GoToState(this, "statename", true); I don't know C++ and am working to convert some animations for another group. The MSDN examples are blank!
dex3703
  • 2,077
  • 4
  • 28
  • 45
0
votes
1 answer

StateHelper (VisualStateManager with MVVM)

Question based on StackOverflow (answered) or you could see StateHelper itself (updated) on GitHub It works! But I don't understand which way that helper resolve dependency view model from view, when helper method SetState get DependencyObject…
vvkuznetsov
  • 1,056
  • 1
  • 9
  • 16
0
votes
1 answer

VisualState Name and GroupName, WinRT WinPRT

I'm trying to set custom visual states of multiple items like Button, GridViewItem, and ListBoxItem. It seems like I'm missing some states. I searched through the stackoverflow and msdn and could not find a list of possible visual states so that I…
nimatra
  • 604
  • 8
  • 19
0
votes
1 answer

VisualStateManager doesn't skip 'non-generated' transitions

The VisualState tools in Blend / WPF / Silverlight are great but I think we can all agree that that are trés buggy on occasion. Here is an example and I would like some clarification / a workaround / fix. Consider a bunch of visual states defined…
Gusdor
  • 14,001
  • 2
  • 52
  • 64
0
votes
1 answer

VisualStateManager messes up when I specify a default duration

I'm trying to use the VisualStateManager to manage my control states. The following works fine and gives me a one second animation between states.