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 ...
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>...
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...
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>
...
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...
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...
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...
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...