WPF newbie here so excuse the simple question. How do I cause a trigger to fire on a UserControl from a control outside of that UserControl? Here's what I want to do...
I have a UserControl with a trigger set to display a background color change on itself when IsMouseOver is True. If I mouse over the UserControl, the trigger fires as I expect. What I'd like to do is to create a window that contains the UserControl and a button, and when the user mouses over the button, fire the UserControl's trigger. Something like:
<Window x:Class="WpfApplication1.SimpleUCTry1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WpfApplication1.SimpleUCTry1"
Title="Window1" Height="300" Width="300">
<StackPanel>
<local:Simple />
<Button Content="Foo" />
</StackPanel>
So if the user mouses over the "Foo" button, the "Simple" UserControl's trigger would fire.
Is this possible?
Thank you, Andy