Questions tagged [visualstates]

107 questions
0
votes
1 answer

VisualState not called

i have a custom togglebutton with some visual states. I have to override or change the "checked" state and do this in an easy way. But the state isn't shown but called. What i am doing wrong? Heres my code (sample) [TemplateVisualState(GroupName =…
JPOne
  • 216
  • 2
  • 8
0
votes
1 answer

Transitioning "Visibility" in blend using visual states

So I have a loading control which if effectively a usercontrol that says "Loading" over the top of my main user control, preventing the user interacting with my program until it is loaded. I would like to use visual states to transition the…
JKennedy
  • 18,150
  • 17
  • 114
  • 198
0
votes
1 answer

Control goes into a visual state - but actual visual states are not getting updated through xaml

I have two controls - control 2 inside of control 1. Control 1 and Control 2 have visual states. I am facing the following problem: Control 2 goes into a visual state, (have put a Debug.Write in the C# code), but doesn't get updated visually…
P.K
  • 18,587
  • 11
  • 45
  • 51
0
votes
1 answer

WPF Focused Visual State kicks in only when button pressed, why?

With respect to the code below, can anyone tell me why when a button is in normal state as well as in focused state, the button does not bounce? In other words, shouldn't a button bounce anytime it gets focused state, regardless whether it is…
WITL
  • 107
  • 1
  • 9
0
votes
0 answers

Create visual states through code - Windows Phone 8

I have a simple question. Can Visual states be defined through code for a button in WP8? We can change visual states through code using GoTo function but can visual states be defined in the code behind? Suppose on the click of a button I need to…
alfah
  • 2,077
  • 1
  • 31
  • 55
0
votes
1 answer

VisualStateManager: how the page is aware of initial VisualState

I have one doubt regarding the working of VisualStateManager in Windows Store apps... Assume this sample page:
MAXE
  • 4,978
  • 2
  • 45
  • 61
0
votes
1 answer

WPF - RotateTransform animation not keeping current angle

iv'e got a ToggleButton which includes a polygon on "Checked" State i rotate the Polygon by 90 deg. The problem is that after the rotation is complete the Polygon pops back to it's initial angle. my ToggleButton : (Partial template) …
eran otzap
  • 12,293
  • 20
  • 84
  • 139
0
votes
1 answer

WPF RepeatButton with Pressed VisualState

1) my repeat button visual state is a rectangle which Stroke go's from Transparent to Gray when pressed, this visual state change occurs only once on Pressed, since this is a repeat button i would like the visual state change to re occur (like a…
eran otzap
  • 12,293
  • 20
  • 84
  • 139
0
votes
1 answer

How to set background of stackpanel when it is pressed in windows phone 7?

How to set a background color of stackpanel(grid or border) using visualstate when it is pressed in Windows Phone 7?
0
votes
1 answer

VisualStateManager inconsistency

How is that you can declare VisualStates and VisualStateGroups on any object inheriting from FrameworkElement but to call the VisualStateManager.GoToState you need to specify a Control? What's the point of declaring states tan you cannot navigate to…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
0
votes
1 answer

How to add click visual state on listpicker to wp8 app?

How do I set the click visual state on my listpicker for my wp8 app? I want to change foreground and background on the listpicker
user1156691
  • 233
  • 1
  • 4
  • 11
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
1 answer

On Mouse over / on Getting focus, The Button Disappers in windows 8 metro app, How to disable that effect?

In Many places in my application i am using buttons in the UI but my doubt is :- 1)when a button gets focus or when it is getting mouse over also , the button background disappears (i.e, it becomes invisible at that time), After again coming away…
user1516781
  • 973
  • 1
  • 20
  • 42
0
votes
2 answers

ColorAnimationUsingKeyFrames changes brush

Well hi, I am kind of new to WPF and this is the first time I tried change styles of WPF controls. Thanks to Expression Blend everything went better than expected until I made this style.