Top "Datatrigger" questions

a WPF .NET trigger that applies property values or performs actions when the underlying bound data meets a specified condition.

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. …

wpf xaml binding visibility datatrigger
How can I provide multiple conditions for data trigger in WPF?

How can I provide multiple conditions for data trigger in WPF?

wpf datatrigger
How to get DataTemplate.DataTrigger to check for greater than or less than?

The following DataTemplate.DataTrigger makes the age display red if it is equal to 30. How do I make the age …

wpf xaml datatemplate datatrigger
Why can't I add a DataTrigger to my control's Triggers collection?

Why cant I code like this <Border Width="130" Height="70"> <Border.Triggers> <DataTrigger Binding="{Binding Path=…

wpf datatrigger
TextBlock style triggers

I would like to combine the DisplayNames from two different ViewModels, but only IF the first is not equal to …

wpf xaml mvvm styles datatrigger
How to make a text box Visibility=Hidden with a trigger

I seem to be having a hard time today. All I want to do is make a TextBox hidden of …

wpf .net-3.5 styles datatrigger
How can I toggle a TextBlock's visibility in a DataTrigger?

This code works (when ControlType="dropDown" then the background yellow): <Window x:Class="TestCollapsed.Views.MainView" xmlns="http://schemas.…

c# wpf xaml datatrigger
WPF Style DataTrigger with binding to DataContext not working

I have a TextBox with a style that has a DataTrigger which changes the text, like this: <Grid> &…

c# wpf binding datatrigger
wpf - fire datatrigger when property changes regardless of new value

I'm trying to execute an animation on a cell in a datagrid when the value of the datagrid cell changes. …

wpf datagrid datatrigger
MultiDataTrigger vs DataTrigger with multibinding

I encountered a situation where I can easily achieve the same functionality by using a MultiDataTrigger or, alternately, using a …

wpf datatrigger multibinding multitrigger