You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, we would like to use for example adonisExtensions:CursorSpotlightExtension.BackgroundBrush in Style, but while program compiles, Button doesnt get CursorSpotlightExtension. If we move this directly to Button, it works as it should. Is there any specific thing we forgot to do?
<Window.Resources>
<Style x:Key="ControlsButtonStyle"
TargetType="Button"
BasedOn="{StaticResource {x:Type Button}}">
<!-- does not apply-->
<Setter Property="adonisExtensions:CursorSpotlightExtension.BackgroundBrush" Value="Red"/>
<Setter Property="adonisExtensions:CursorSpotlightExtension.BorderBrush" Value="Red"/>
<!-- this one works fine -->
<Setter Property="Foreground" Value="{DynamicResource {x:Static adonisUi:Brushes.AccentForegroundBrush}}"/>
<Setter Property="Background" Value="{DynamicResource {x:Static adonisUi:Brushes.AccentHighlightBrush}}"/>
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static adonisUi:Brushes.AccentHighlightBrush}}"/>
</Style>
</Window.Resources>
The text was updated successfully, but these errors were encountered:
I think you need to override the Style Triggers for each state if you're interested in the CursorSpotlightExtension
Otherwise, if you want to override them "globally" for the Button, use these instead:
Hello, we would like to use for example adonisExtensions:CursorSpotlightExtension.BackgroundBrush in Style, but while program compiles, Button doesnt get CursorSpotlightExtension. If we move this directly to Button, it works as it should. Is there any specific thing we forgot to do?
The text was updated successfully, but these errors were encountered: