datatrigger Questions

1

Solved

Assuming the binding is right and the image files are where they shuld be, can anyone spot why the image in the xaml below won't change when the trigger evaluates to true? Cheers, Berryl <Imag...
Amorphism asked 10/3, 2010 at 3:39

1

Solved

somehow I am going in circles here. Please forgive me if the answer to this question is obvious. I want to react to changed properties in the ViewModel in the View. When the properties (bool) chan...
Mayhew asked 4/3, 2010 at 0:52

1

Solved

<ListBox.ItemTemplate> <DataTemplate> <Grid x:Name="grid"> <Grid.Background> <SolidColorBrush x:Name="backgroundBrush" Color="Transparent" Opacity="0.1"/> </Gr...
Splint asked 3/3, 2010 at 21:30

1

Solved

Let's say I have the following simple classes: public class Person { public int Id { get; set; } public string Name { get; set; } } public class PersonHolder { public Person CurrentPerson { g...
Blowy asked 10/2, 2010 at 19:47

2

Solved

How do I define a DataTrigger for a StackPanel? It does have a Trigger property, but defining a trigger here gives the following error on Initialize when starting the application: Failed object...
Sentinel asked 11/2, 2010 at 8:56

2

I'm trying to define a DataTrigger for an Image element so that it shows a connected/disconnected image. I keep getting an Invalid PropertyDescriptor message. Any ideas? <Image> <Image.S...
Garnish asked 19/1, 2010 at 17:58

1

Solved

What is the best way to trigger an animation while using the MVVM pattern? More specifically, I have a form which has several fields. When a user click's the save Button, I would like to show an an...
Deathless asked 16/12, 2009 at 0:17

1

Solved

I have a ListBox. Now I want to write a DataTemplate in such way, that the first item will have red background and white background for other items. I guess I need to write a DataTrigger, but I hav...
Cleaning asked 15/11, 2009 at 10:47

1

Solved

I have the following xaml: <DockPanel> <DockPanel> <CheckBox IsChecked="{Binding Path=Test}" /> <CheckBox IsChecked="{Binding Path=Test}" /> </DockPanel> <Do...
Heterophyte asked 28/10, 2009 at 3:14

4

Solved

I want to change the background color of our apps main window when a property changes. We have a business date that can be changed and I want to change the window background when it has changed fro...
Fluting asked 20/10, 2009 at 14:45

2

Solved

I want to do something like <DataTrigger Binding="{Binding Something}" ValueIsNot="{x:Null}">
Hema asked 10/10, 2009 at 12:19

1

Solved

I want my TextBox to have a red background if the ViewModel property = "invalid". What do I have to change so this works? This version tells me that Background does not have a qualifying type name...
Bramble asked 19/6, 2009 at 8:44

1

Solved

I've got the following XAML used to display detailed information about an item selected in a list view. I want the rectangle to show the standard info color behind the text except when the selected...
Pointsman asked 7/5, 2009 at 6:29

2

Solved

I seem to be having a hard time today. All I want to do is make a TextBox hidden of visible based on a bool value databound to the Window its hosted in. What I have just won't compile and I don't...
Ogg asked 10/3, 2009 at 16:28

2

Solved

I have the following XAML: <TextBlock Text="{Binding ElementName=EditListBox, Path=SelectedItems.Count}" Margin="0,0,5,0"/> <TextBlock Text="items selected"> <TextBlock.Style> ...
Pyrophoric asked 18/9, 2008 at 16:29

1

Solved

In WPF, is it possible for a DataTrigger to bind to an attached property? I essentially want to use a converter on an attached property to provide a style when a particular validation rule has bee...
Git asked 10/9, 2008 at 1:47

© 2022 - 2024 — McMap. All rights reserved.