Skip to main content

All Questions

1 vote
1 answer
1k views

WPF: Trying to change visibility based on selection in combobox

I would like to display a different stackpanel based on the selection made in a combobox. Idea is to collapse any stackpanels that aren't needed. The combobox looks something like this: <...
InfoSpunge's user avatar
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
0 votes
2 answers
2k views

wpf toggling visibility collapse only works once

What i want to do is collapse the bottom section of the WPF ui based on the checkbox toggle. This mostly works as expected so far. Below as you step through the images you'll see the collapse stops ...
JokerMartini's user avatar
  • 6,047
0 votes
1 answer
817 views

Running the trigger only when the binding is equal to a certain value

I want to run a trigger that makes visibilty to Visible only when the binding is a certain value, in another case so visibilty is Hidden. Here my grid: <Grid> <Grid.Style> ...
Hodaya Shalom's user avatar
192 votes
12 answers
197k views

DataTrigger where value is NOT null?

I know that I can make a setter that checks to see if a value is NULL and do something. Example: <TextBlock> <TextBlock.Style> <Style> <Style.Triggers> <...
Timothy Khouri's user avatar