datatrigger Questions
1
Solved
I believe what I'm trying to do is "simple" enough, so I'm probably just missing something obvious.
In a DataGrid, I am trying to bind a CheckBox so that when it is checked, the Background color o...
Airworthy asked 28/3, 2012 at 20:19
1
I'm attempting to convert some of my WPF skills to Silverlight, and have run into a slightly odd problem in the test mini-app I've been working on. In WPF, I got used to using DataTriggers within a...
Piane asked 28/6, 2011 at 14:29
3
Solved
I am trying to figure out the best way to create a style/trigger to set foreground to Red, when value is < 0. what is the best way to do this? I'm assuming DataTrigger, but how can I check for n...
Divers asked 8/7, 2010 at 15:15
4
Solved
This is my scenario.
I have 2 Properties. Type and State.
Type is an Enum with 3 values eg, ball, car, arrow. State is an int which would accept 3 state values eg., -1, 0, 1. Also, I have 9 image...
Charissacharisse asked 20/8, 2010 at 9:6
2
Solved
I want my image Visibility property set to Hidden when my bound table field
Weblink = NULL **OR** Weblink = ""
With MultiDataTrigger you can test several conditions in the following logic:
"I...
Indomitability asked 25/10, 2011 at 12:5
2
Solved
The goal here would be to check all grid checkboxes if the header checkbox changes:
<Window.Resources>
<Style TargetType="CheckBox" x:Key="InnerBox">
<Setter Property="Horizontal...
Quirk asked 30/8, 2011 at 15:44
1
Solved
I would like to have a storyboard started, whenever the value of MyCounterchanges.
With a DataTrigger I only can trigger on a specific value.
<DataTemplate.Triggers>
<DataTrigger Binding...
Cothran asked 27/7, 2011 at 10:2
2
Solved
In the following XAML I'm using a Rectangle with a Border as the Template for a ToggleButton.
I want the BorderBrush to be a different colour to reflect the changing value of ToggleButton.IsChecked...
Amity asked 21/7, 2011 at 0:26
1
Solved
I've a situation in which there is a common control which is used couple of places in application.
Now in this i've a data trigger on a property say A. i.e.
DataTrigger Binding={Binding A} .......
Bloodmobile asked 12/7, 2011 at 14:14
1
Solved
Is it possible to use a wild card or call a method to work out if a DataTrigger should be applied?
I currently have my DataList bound to an IEnumerable that contains file names and I want the file...
Spree asked 15/6, 2011 at 1:39
1
Solved
I've found an interesting problem in my WPF app related to a MultiDataTrigger not starting a StoryBoard to animate a data grid cell. I have a WPF data grid control which is bound to an ObservableCo...
Anyplace asked 14/6, 2011 at 22:7
1
Solved
I want to show a number on screen. If that number is 0 I don't want it to show at all.
<TextBlock Text="{Binding Path=Class.Count}" FontSize="20" FontWeight="Bold">
<TextBlock.Triggers&g...
Pipage asked 14/6, 2011 at 14:14
1
Solved
In my application, I have a TextBox that I want to enable/disable based on an enum in my datacontext. The enum has three values (Anyone, Me, Someone) and I want to enable the Textbox when the value...
Ceramist asked 2/6, 2011 at 6:36
2
Solved
I have a wpf tree view that displays nodes of various types with corresponding images such as folder images. Initially, the tree and its nodes with corresponding images display as expected. However...
Bernardo asked 26/4, 2011 at 22:37
2
Solved
I'm beginner in WPF.
I want to set Visibility to Hidden on a Radiobutton when the databind value is equal to Null.
I'm using WPF Toolkit.
This is my code but it doesn't work :
<dg:DataGrid x:N...
Schulte asked 29/3, 2011 at 14:56
3
Solved
I want to enable/disable a ComboBox based on if there is an item selected in another ComboBox. I was able to get it working by setting a trigger on the Style, but that overrides my custom global st...
Dire asked 9/2, 2011 at 21:17
1
I am writing a XAML file which use DataTrigger to set a property in the ViewModel. The ViewModel class defined as:
public class ShellModel : INotifyPropertyChanged
{
public Brush ForegroundBrush...
Angel asked 26/1, 2011 at 12:15
1
So here is my XAML:
<Ellipse Height="100" Width="100" Margin="35,112,0,0" Name="ellipse1" Fill="Red">
<Ellipse.Style>
<Style TargetType="Ellipse">
<Style.Triggers>
<...
Solent asked 14/1, 2011 at 11:13
1
Solved
To translate my WPF application I use a Markup extension which returns a Binding object. This allows me to switch the language while the application is running. I use this Markup like this:
<Te...
Christmann asked 7/1, 2011 at 8:55
2
Solved
what is wrong about the following code?
I get this error during compilation:
The property 'TargetName' does not represent a valid target for the 'Setter' because an element named 'cc' was not fou...
Allotropy asked 17/12, 2010 at 18:46
2
Solved
I want the ContentTemplate to vary according to the value in the DataTrigger.
And yes, I considered using a DataTemplateSelector, but now I need a DataTrigger or better said a MultiDataTrigger.
Pl...
Karlin asked 19/1, 2010 at 0:11
4
Solved
I have a property called Raised_Time, this property shows the time at which alarm is raised in datagrid Cell. I don't want to show anything in the datagrid cell when user creates any alarm, it just...
Morissa asked 7/9, 2010 at 12:6
1
Solved
I have the border below. Why would the Foreground of my TextBlock work correctly but the Background of the border always stay the same (as if the IsDeleted property is always false)
<Border Doc...
Milomilon asked 30/7, 2010 at 17:16
2
Solved
I need to be able to change the Style of a control when a property and data value are true. For example, my bound data has an IsDirty property. I would like to change the background color of my con...
Laine asked 27/5, 2010 at 14:8
1
Solved
I have a enum let's say
enum MyEnum
{
FirstImage,
SecondImage,
ThirdImage,
FourthImage
};
I have binded this Enum to my combobox in XAML.
While defining an combobox I have defined an ItemTe...
Distortion asked 28/3, 2010 at 12:29
© 2022 - 2024 — McMap. All rights reserved.