Questions tagged [visualstates]

107 questions
1
vote
2 answers

Problems with the visual states when styling the PieDataPoint in WPFToolkit Chart

I am trying to style the pie data points in the WPFToolkit chart. Basically I want to change the tooltip. It works, but the visual states of the data point do not change. I have copied the style from the sources and modified the tooltip only to add…
Marius Bancila
  • 16,053
  • 9
  • 49
  • 91
1
vote
1 answer

Is Binding or Visual State approach preferable for performance?

Let's say I have a large XAML page. On this page are dozens of text boxes, buttons, etc, and these controls need to be shown/hidden/modified based on various conditions (permissions, view-model states, whatever). Two possible approaches to set up…
McGarnagle
  • 101,349
  • 31
  • 229
  • 260
1
vote
1 answer

Where is TemplateVisualStateAttribute in a WinRT button?

Here's the definition of a WinRt button. Why can't I find the TemplateVisualStateAttribute? If it's not tagged on the class itself, how can I possibly discover what visual states and groupings are available to me when implementing a custom button…
Alwyn
  • 8,079
  • 12
  • 59
  • 107
1
vote
1 answer

Why is my XAML button PointerOver VisualState not working?

I am trying to get the following PointerOver VisualState to work. Ideally when the mouse pointer is over the button, I want to highlight the button with a black border. I have been trying various ways to make this work, please help. Note: If I set…
Alwyn
  • 8,079
  • 12
  • 59
  • 107
1
vote
2 answers

How to create a Flashing and Normal Background Visual States for a Border control

How can I create 2 visual states for a WPF Border control : one that flashes the Background color between Transparent and Red; and one normal that sets the Border Background color back to Transparent and stops flashing? Note: The WPF Border control…
S2S2
  • 8,322
  • 5
  • 37
  • 65
1
vote
2 answers

Use VisualStates with MenuItems to change Foreground color

I have what may seem like a relativly simple question but on that same note I am still relativly new to WPF so please me gental. My question is simply this, I have a VisualStateManager on my MenuItems in a context menu that I want to handle chaning…
Jimmy
  • 941
  • 2
  • 8
  • 27
1
vote
1 answer

Moving object using code behind and using xaml

im using blend 4 to make a wpf application i have a wrapPanel defined in xaml: when i enter a certain visual state, the code-behind the wrapPanel to a new location: WrapPanel_ShowMe.RenderTransform = new…
Domnick Sharkey
  • 65
  • 1
  • 2
  • 7
1
vote
0 answers

Animating width and height of a template

How can I animate the width and height of a template in XAML? For example in the code below,