About 37,800 results
Open links in new tab
  1. c# - DataTrigger Binding in WPF Style - Stack Overflow

    Jul 11, 2013 · I have the following Button and Style in WPF and I need to generalize the Binding in the DataTrigger section because I have near 10 similar buttons in the same Window and each button …

  2. wpf - How to get DataTemplate.DataTrigger to check for greater than …

    The following DataTemplate.DataTrigger makes the age display red if it is equal to 30. How do I make the age display red if it is greater than 30? <DataTemplate DataType="{x:Type local:Custome...

  3. datatrigger - How can I provide multiple conditions for data trigger in ...

    May 25, 2009 · How can I provide multiple conditions for data trigger in WPF?

  4. What's the difference between a Trigger and a DataTrigger?

    Jun 27, 2011 · A regular Trigger only responds to dependency properties. A DataTrigger can be triggered by any .NET property (by setting its Binding property). However, its setters can still target …

  5. c# - MultiDataTrigger with OR instead of AND - Stack Overflow

    An alternative solution is to use a single DataTrigger with a MultiBinding. You could make it work by defining a 'special-case' IMultiValueConverter that assumes 2 items in the object array, and returns …

  6. MultiDataTrigger vs DataTrigger with multibinding - Stack Overflow

    I encountered a situation where I can easily achieve the same functionality by using a MultiDataTrigger or, alternately, using a DataTrigger with a MultiBinding. Are there any substantive reasons to

  7. WPF Data Triggers and Story Boards - Stack Overflow

    Sep 17, 2008 · I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Busy. I have an IsBusy Property, and the ViewModel is set as the DataContext of the UserControl. …

  8. c# - How do I bind a datatrigger in xaml to a code-defined …

    How do I bind a datatrigger in xaml to a code-defined dependency property? Asked 12 years, 8 months ago Modified 11 years, 5 months ago Viewed 15k times

  9. Newest 'datatrigger' Questions - Stack Overflow

    Jun 19, 2025 · WPF Datatrigger should fire only once I have a simple application: There's a DataGrid, and every time the user adds a new row and finished editing, the row turns yellow.

  10. xaml - WPF Trigger based on Object Type - Stack Overflow

    Oct 31, 2009 · <DataTrigger Binding="{Binding SelectedItem}" Value="SelectedItem's Type"> </DataTrigger> Background: I have a Toolbar and I want to Hide button's depending on what …