Skip to main content

All Questions

Tagged with
0 votes
1 answer
322 views

Make element visible when Validation.HasError is true

I have the following xaml markup: <GroupBox Margin="10" Padding="20" Header="Case 5 - Custom Error Object"> <GroupBox.DataContext> ...
vso's user avatar
  • 21
-1 votes
2 answers
266 views

Hide a control with trigger on another

I have a <TextBlock x:Key="_tb1"/> and another <TextBlock x:Key="_tb2"/>. How to set visibility of _tb1 when for exemple IsMouseOver of _tb2 is true ?
Manta's user avatar
  • 517
1 vote
2 answers
2k views

Change Visibility of one Control when it is changed on another one

I got 3 Controls in my XAML. If the Visibility from one of them changes to Visible, the others Visibility should change to Hidden. So that only one of them can be Visible at a time. My Xaml <...
Error404's user avatar
  • 723
11 votes
1 answer
17k views

WPF XAML Grid Visibility Trigger

I have a status message located on the first row of my grid and I want it to slide in and out when the visibility changes. The first visibility trigger works great and slides the first grid row open ...
Mikkeee's user avatar
  • 161
0 votes
1 answer
498 views

Updating Fill Color on Visibility Change Trigger

I need to change the Color of the Rectangle in DataGrid based on the order of Visibility. For example, if I have 5 rows, and if rectangle of 3rd row becomes visible for the first time it should be ...
Irfan's user avatar
  • 2,761
0 votes
1 answer
500 views

Set visibility with a trigger

I just want to start an storyboard which makes an rectangle visible for 2 seconds when user pressed with left mouse button. But I could not solve how to get the visibility value. <Grid.Triggers>...
Nasenbaer's user avatar
  • 4,870
11 votes
2 answers
22k views

WPF Stop Storyboard on Visibility Changed

I have a UserControl with a story board and I want to stop the animation when the control's Visibility changes. I created a Trigger to pause the animation and start it depending on the state, but I ...
HaxElit's user avatar
  • 4,033