multitrigger

Can you swap VisualStateManager for MultiTrigger in WPF?

This really relates to creating a library that works across both WPF and Silverlight. The WPF Toolkit includes an implementation of the VisualStateManager included with Silverlight, and if the VisualStateManager can do what the MultiTrigger in WPF does, that solves my problem. I just found an article on MSDN Blogs discussing the use of ...

Trigger seems not to fire, what am i doing wrong?

I have enter actions defined for two triggers as such: <Trigger Property="ToggleButton.IsMouseOver" Value="true"> <Trigger.EnterActions> <BeginStoryboard x:Name="GlowStart_BeginStoryboard" Storyboard="{StaticResource GlowShow}"/> </Trigger.EnterActions> </Trigger> <MultiTrigger>...

WPF - MultiTrigger in ControlTemplate, strange behaviour.

Okay, I've not done much WPF lately and this is confusing me. I have a Style defined for RadioButton, which uses a ControlTemplate with a MultiTrigger. The gist is that I want a Border to become opaque when the mouse either hovers over it or when it's IsChecked is true. So I have the MultiTrigger, which animates the Opacity in and ou...

xaml: Is there a method to implement OR logic in multiple triggers?

I want the Role to be either TopLevelHeader OR TopLevelItem as well as IsPressed. Is this possible without specifying two MultiTriggers? <MultiTrigger> <MultiTrigger.Conditions> <!-- IsPressed --> <Condition Property="IsPressed" Value="True"/> <Condition Property="Role" Value="TopLevelHeader"/> </MultiTrigger.Conditions> ...

WPF TextBox.Text with MultiBinding

Hi ! I've got Custom Control with a TextBox in the default Template. The Custom Control has these 2 dependency properties (among others): SelectedValue, NullText (text to appear in the TextBox when nothing is selected and the value is provided) I'd like to set the TextBox.Text with the NullText value when the SelectedValue null is and...

Button style not getting updated when manually updating data source

I have a dialog with two textboxes and a button. The button's IsEnabled style is set dynamically based on whether the data validation of the two textboxes succeeded. <Button Content="Finish" x:Name="btnFinish" Click="btnFinish_Click"> <Button.Style> <Style TargetType="{x:Type Button}"> <Setter Pro...

WPF Trigger when Property and Data value are true

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 control when IsDirty is true AND the control is selected. I found the MultiTrigger and MultiDataTrigger classes...but in this case I need to some...

MultiDataTriggers and VisualState

Hi, I am trying to create a menu system which changes the content template for a panel AFTER the panel has been closed by a Visual State change but before the panel is re-opened (think of a slide in/out filter). I was hoping to achieve this using a combination of data triggers but am having no joy :( Some code has been ommited for brevi...