Top "Datatrigger" questions

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

How to change a WPF window backgroud with a data trigger?

I want to change the background color of our apps main window when a property changes. We have a business …

wpf xaml background datatrigger
WPF Datatrigger not firing when expected

I have the following XAML: <TextBlock Text="{Binding ElementName=EditListBox, Path=SelectedItems.Count}" Margin="0,0,5,0"/> <TextBlock Text="items …

wpf datatrigger
How to trigger a storyboard on property changed

I would like to have a storyboard started, whenever the value of MyCounterchanges. With a DataTrigger I only can trigger …

wpf storyboard datatrigger
Data Trigger using Converter not working

I am trying to update the color of textblock depending on it value. Seems simple however not working. Here's the …

c# wpf converter datatrigger
WPF Datatrigger Visibility + Null Value

I'm beginner in WPF. I want to set Visibility to Hidden on a Radiobutton when the databind value is equal …

c# wpf wpftoolkit datatrigger
How can I change the Foreground color of a TextBlock with a Trigger?

I want to change foreground color of a TextBlock from dependencyproperty. But I don't change textblock color. I don't know …

wpf textblock datatrigger foreground
How can I get this DataTrigger to work?

I want my TextBox to have a red background if the ViewModel property = "invalid". What do I have to change …

wpf mvvm binding triggers datatrigger
What's the difference between a Trigger and a DataTrigger?

They seem the same. Is there a significant difference? I think I am missing something.

wpf triggers datatrigger
Defining DataTrigger for StackPanel

How do I define a DataTrigger for a StackPanel? It does have a Trigger property, but defining a trigger here …

.net wpf triggers datatrigger stackpanel
WPF Setting Image.Source from DataTrigger

I'm trying to define a DataTrigger for an Image element so that it shows a connected/disconnected image. I keep …

wpf image styles datatrigger