Questions tagged [visualstates]

107 questions
0
votes
1 answer

How to use window IsActive="False" state trigger in uwp?

In wpf it's looks like this:
Dmitry
  • 549
  • 1
  • 5
  • 16
0
votes
1 answer

UWP VisualStateManager PointerOver does not work

I am mimicking the behavior of Groove Music, which displays a drop shadow effect when mouse hovers on an album cover (in my code it's the entire DataTemplate). But My VisualStateManager doesn't seem to work. Any ideas? I have implemented that…
user10634280
0
votes
1 answer

Why does adding a border with corner radius to my button style wipe out the visualstate?

When I add a border with corner radius to my style, it makes the VisualState PointerOver and VisualState Pressed stop working. I tried inserting the border in several places where the IDE would allow it, but each time I got the same result: no…
Nallware
  • 159
  • 1
  • 4
  • 18
0
votes
1 answer

Problem at the beginning of a ColorAnimation for a GradientStop in a VisualState

I have a very strange problem with a ColorAnimation. What I want to do is pretty simple (I think): I have a Rectangle with a GradientBrush as a background. This rectangle has different VisualStates that change the colors of the gradient. I want to…
Damien Chaib
  • 401
  • 3
  • 14
0
votes
2 answers

How can I know which VisualState of control already defined in WPF's XAML?

How can I know which VisualState of control already defined in XAML? For example, WPF Button control has 2 VisualStateGroups by default. They are "CommonStates" and "FocusStates". The "CommonStates" contains 4 VisualState: "Normal", "MouseOver",…
namhnz
  • 75
  • 1
  • 10
0
votes
1 answer

WPF X:Name causes type name 'ViewModel' Compile Error

I intend to set a state of CalibrationGridControl from a button. To do that, the CalibrationGridControl UserControl must have a x:Name (Blend even adds one for me when I setup the the GoToState behavior. Problem is, as soon as I add…
Johan
  • 502
  • 4
  • 18
0
votes
2 answers

change label foreground color in visual state

I try to create my UserControl which have a Label and TextBox. I want to my control have custom set of Visual States. So I wrote this code in xaml:
0
votes
1 answer

How to get VisualStateGroup properties from a UserControl to reference in the ViewModel in Silverlight 4 C# code?

I'm trying to make visual states available in the ViewModel as some sort of enumeration (so that I don't have to use string literals or manually create and update static properties in order to be able to control states), and I accidentally found out…
dain
  • 6,475
  • 1
  • 38
  • 47
0
votes
2 answers

SketchFlow / Using (Selected) TabItem in TabControl to Trigger State

Context: A new Sketchflow / Silverlight project. Expression Blend 4 (Ultimate) I have the below code. I have a TabControl with 2 TabItem's. I also have 2 "callout" (big bubble things) as quick visual on the state change. I created a…
granadaCoder
  • 26,328
  • 10
  • 113
  • 146
0
votes
1 answer

Resizing wpf window, while recording state, distorts the wpf components

I want to record the state in blend for visual studio, but when i resize the window (Grid and Tab Control) for a state, the entire content will be distorted. If i am not recording then it will behave normal. Base state of form This is what happens…
0
votes
0 answers

Using xaml states to change window size programatically

I have created 2 states for the main window of the program (big and small) and i have added a tabcontrol with 2 tab items. I want to use the big state to change the size of the window when i am in tab1 and small state to change the size of window…
0
votes
0 answers

Is there a way to make nested Visual States? Perhaps by inheriting from other visual states?

I'm making a nested/hierarchical menu using Visual States as my way of navigating. This works very nicely when going left to right in the menu. If I click Main Menu 3, it turns blue and the attached Sub Menu pops up, same thing if I click Sub Menu…
Tom
  • 1,747
  • 5
  • 23
  • 39
0
votes
1 answer

Keep PointerOver from changing text color of Checked button

I am having issue trying to have a set of radio buttons behave as buttons, and my goal is to have the text color of the buttons change on hover, and to have it go back to original color and be bolded on click. I am implementing recomendations on a…
Gema Beltran
  • 171
  • 9
0
votes
1 answer

States Storyboards Animation in Expression Blend

What I am trying to do is learn how to animate various controls in Silverlight using Expression Blend. I've started with trying to animate a listbox. I have a listbox whose Style I have tried to edit (Edit Style ->Edit Current/Edit Copy) which…
user20358
  • 14,182
  • 36
  • 114
  • 186
0
votes
1 answer

UWP - Change Button VisualState dynamically

I am trying to change the button Pressed background dynamically. But I am unable to access to this property from the code behind. According to the base style of button, I tried to get the ControlTemplate (by the TemplateProperty) but there is no…