Questions tagged [visualstates]
107 questions
2
votes
0 answers
Silverlight 5 ComboBox ToggleButton Focused VisualState not working
I can't figure out why the FocusVisualElement of the ComboBox ToggleButton never shows. I've tried moving the Focused Storyboard to MouseOver and it works then, so I'm pretty sure the storyboard works. Perhaps the Focused VisualState is never…

merk31
- 21
- 1
2
votes
1 answer
Preferred behavior when going from filled to snapped Visual State
I am currently implementing a few snapped views, and I've ran into a problem I couldn't find an answer to. Perhaps you beautiful minds can help me out.
When I drag my app from a filled state to a snapped state, there is a period of about 1 - 1.5…

Kris Selbekk
- 7,438
- 7
- 46
- 73
2
votes
1 answer
VisualStateManager.GoToState doesn't work with DataTemplate
I have a Listbox with the following DataTemplate set as ItemTemplate and I want to change the VisualState of it using Codebehind.
DataTemplate:
…

martinyyyy
- 1,652
- 3
- 21
- 44
1
vote
2 answers
Setting the visual state of a control during design time
Is there a way to set the visual state of a control during design time in Miscrosoft Blend ?
(For example setting the state of a TextBox to "Disabled" so that one can see the disabled TextBox on the design surface)
Thanks in advance :)

marc wellman
- 5,808
- 5
- 32
- 59
1
vote
2 answers
ComboBox: How to show one property of Items when DropDown is open and a different one when DropDown is closed
In a WinUI 3 desktop app, I have a list of objects, each with a LongName and an Abbreviation property (both strings). I'd like to use a ComboBox to select a specific item. When the ComboBox dropdown is closed, I'd like the Abbreviation of the…

aturnbul
- 347
- 2
- 12
1
vote
2 answers
Silverlight ToggleButton Checked VisualState not working
I'm trying to set up the style for VisualStates on a ToggleButton on Silverlight. Everything works, except the Checked state is not honoring the change in Rectangle.Fill, but the text color change is working fine, so Checked is being triggered.
I…

Gady
- 4,935
- 8
- 38
- 48
1
vote
0 answers
Visual States or Silverlight ComboBox
I'm trying to modify a siverlight combobox so that the "combo" part is ony visible when accessed. I changed the Opacity of the DropDownToggle part to 0 and changed the MouseOver Visual State to set the opcaity of the DropDownToggle to 50%.
This…

Jamie MacLennan
- 53
- 6
1
vote
2 answers
IAR VisualState Requiring Trigger For Every Expression inside a State
I have been using State machine based design tools for some time, and have seen UML modeling tools that allow you to execute your logic (call functions, do other stuff) inside a state. However, after spending a couple days with IAR VisualState, it…

Rob
- 147
- 1
- 1
- 7
1
vote
1 answer
Best way to propagate VisualState changes
I am currently facing a scenario that I am unsure what is the best way to handle.
Scenario:
ControlA has 2 two custom visualstates, let’s call them “StateOn” and “StateOff”.
I now apply a template on ControlA, let’s call it “templateA”.
“templateA”…

ryhzhang
- 92
- 1
- 4
1
vote
1 answer
VisualStateTrigger not updating
I'm making an Universal Windows application. I'm using a Splitview for my menu and if I resize my window I use visual state triggers to adjust the layout. But it doesn't seem to be working.
I watched a lecture on the microsoft build site…

justijn
- 139
- 1
- 10
1
vote
1 answer
Using Staticresouce in Visual State causes Blend Designer to break: "Invalid attribute value Unknow for property Background"
I'm trying to change the Background of a Grid by using a Visual State and a Staticresouce as the value in the Setter of the Visual State. It works just fine at Runtime but the designer shows the following error (which doesn't help me a…

Cort3vl
- 163
- 1
- 11
1
vote
1 answer
Visual-state in SilverLight? (how we use that)
I wrote simple template in xaml for button s.(for silver-light 4)
So when I try use "ControlTemplate.Triggers", I found that is impossible in silver-light, and we must use Visual-State in Silver-Light
so I wrote first ControlTemplate with…

Rev
- 2,269
- 8
- 45
- 75
1
vote
0 answers
Show multiple items selected within combobox in Silverlight when do key navigation in edit mode without dropdown open
Just bind ItemSource to Silverlight ComboBox. Do key navigation within a combobox where DropDown should not be opened. after completing key navigation click drop down icon to view the drop down list. There are multiple items selected that has same…

user3929088
- 79
- 5
1
vote
2 answers
Change VisualState of ListBox element
I've got a Lisbox in which I've made a ItemsTemplate, in this itemTemplate I've got a element in which I wish to change the visualState, The problem is I do not know how to change the state. Here is what I've got so far.

JonasN89
- 1,386
- 2
- 11
- 23
1
vote
1 answer
Using a VisualState to set the width of a RichEditBox to Auto (XAML, C#, Windows 8 App)
I'm a beginner working a C# Windows 8 app. I have a RichEditBox in the center of the screen whose width changes depending on the window size. I can set the width of this RichEditBox to Auto by editing its own properties, but I want to set the width…

user3651656
- 185
- 2
- 9