datatrigger Questions

1

Solved

I have a ListBox which is binded to a List and it has a DataTemplate for it's items. Everything in DataTemplate works good except for visibility of second TextBlock! I don't understand what I'm doi...
Corrales asked 11/12, 2015 at 16:25

5

Solved

I'd like to be able to say <DataTrigger Binding="{Binding SomeIntValue}" Value="{x:Static local:MyEnum.SomeValue}"> and to have it resolve as True if the int value is equal to (int)MyEnu...
Reeder asked 18/8, 2011 at 16:0

4

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I'm after: ...
Endlong asked 5/11, 2009 at 9:35

1

Solved

My view-model exposes a list called MyList that may be empty or null. I have an element that I would like hide based on this state. If MyList is empty or null, then the element should be collapsed....
Middleclass asked 29/10, 2015 at 14:10

1

In WPF, what are some good approaches to debug a trigger such as this? <Trigger Property="IsMouseOver" Value="True"> <Setter Property="FontWeight" Value="Bold"/> </Trigger> ...
Samsara asked 28/8, 2015 at 16:12

5

Solved

I'm trying to execute an animation on a cell in a datagrid when the value of the datagrid cell changes. The datagrid itself is bound to an ObservableCollection of plain old CLR objects. In this ca...
Cordwain asked 1/6, 2011 at 8:7

1

Solved

I want to create a converter in which I will pass a type to find, in element's parent hierarchy & it should return true if such a type found, otherwise false. So far, I tried below given code ...
Ferromanganese asked 28/11, 2014 at 6:10

4

Solved

I've created a UserControl, similar to the following: <UserControl> <StackPanel Orientation="Vertical"> <StackPanel x:Name="Launch" Orientation="Horizontal...
Vulgus asked 7/5, 2009 at 19:56

2

Solved

I have a grid whose rows need to be resized dynamically based on the view model. I'd like to do something like the following: <RowDefinition Height="2*"> <RowDefinition.Style> <St...
Bruno asked 24/2, 2011 at 13:41

2

Solved

I have a Window with a TextBlock. This TextBlock has to show the value "R" if the binded value is 0 or "M" if the binded value is 1. I have two possibilities: ValueConverter approach <TextBlo...
Wawro asked 7/7, 2014 at 10:2

1

Solved

I have the following DataGrid cell, which I would like to animate its background colour briefly as soon as the underlying LastTradePrice property changes its value. <DataGridTextColumn Header="...
Bursar asked 23/2, 2014 at 16:30

3

Solved

I found this: <DataTrigger Value="True" Binding="{Binding (0)}"> triggers in RibbonMenuButton template. What does it mean? I've tried to google, but found nothing. UPD more code: <Con...

1

Solved

I have a TextBox with a style that has a DataTrigger which changes the text, like this: <Grid> <TextBlock Text="Foo"> <TextBlock.Style> <Style BasedOn="{StaticResource Text...
Rena asked 11/10, 2013 at 13:20

2

Solved

I'm trying to create a simple style data trigger that pulls it's binding value from a viewmodel property, as you can see below: <StackPanel Name="stackTextPanel" Orientation="Horizontal" Margi...
Homolographic asked 28/6, 2013 at 4:20

1

Solved

I have a ComboBox and a Button on my main view, and I want to apply a style to the button such that when the combobox index is set to 1, the button becomes visible (initially it's hidden). This is ...
Humidifier asked 8/5, 2013 at 18:53

2

Solved

My code behind for a window defines a dependency property, "Active"... public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } public bool Active { get { ret...
Henceforth asked 19/4, 2013 at 23:31

3

Solved

I currently have a listbox that has its selected item bound to a property on my ViewModel. Whenever the selected item isn't null I want to perform an animation on it. However I keep getting the fol...
Highpitched asked 3/11, 2009 at 19:52

1

Solved

[EDIT] *I had forgotten to include the Exception returned 'System.Windows.Style' is not a valid value for property 'Fill'* This is my first post, I've already done lots of searching for question...
Tumult asked 19/12, 2012 at 3:31

1

Solved

I tried searching through a lot of threads and I've found several that's pretty close but not exactly what I want. After a day of searching, I just decided to ask. Apologies if I missed something, ...
Scriber asked 7/12, 2012 at 19:17

2

Solved

I have a table Product and another table ProductLog. The log table needs to track two columns in the Product table. Each time there is an insert, update or delete on those columns I need to update...
Braeunig asked 2/6, 2011 at 16:42

2

Solved

This is my XAML: <TextBlock Name="SeverityText" Grid.Column="1" Grid.Row="0" Foreground="Red"> <TextBlock.Triggers> <DataTrigger Binding="{Binding Path=Severity}"> <Dat...
Lylelyles asked 27/1, 2010 at 4:14

1

Solved

I've read other questions with similar titles and I think this is a different question. I have a data-bound combobox. Each item has a "status" and a "name" and the display text is a concatenation ...
Inanimate asked 28/6, 2012 at 21:53

1

Solved

I would like to combine the DisplayNames from two different ViewModels, but only IF the first is not equal to a NullObject. I could easily do this in either a converter or a parent view model, but ...
Rail asked 25/6, 2012 at 21:16

1

Solved

Is it possible to use a DataTrigger to set the angle of a RotateTransform in WPF? If so, how?
Estrange asked 3/5, 2012 at 18:10

2

Solved

How can I remove a storyboard in XAML (i.e. RemoveStoryboard action in a DataTrigger) but keep the value that was animated. Similar to the Animatable.BeginAnimation: If the animation's BeginTime...
Hypanthium asked 5/11, 2009 at 22:39

© 2022 - 2024 — McMap. All rights reserved.