I’d like to use a trigger outside a style. Edit: whoops, sorry, it’s actually inside a style for MainWindow, but I want the trigger to apply to the Ellipse and not MainWindow.
<Ellipse Fill="White" StrokeThickness="1" Stroke="Black">
<Ellipse.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Fill" Value="Yellow"/>
</Trigger>
</Ellipse.Triggers>
</Ellipse>
How do I fix the compiler error, which is “Cannot find the static member ‘FillProperty’ on the type ‘MainWindow'”?
you have to put this in style