Is there a way to set the default cursor for a control type at the application level? I’d like to say that all Button controls, regardless of whether or not they have a specific style, have a default cursor of the hand cursor unless it’s overridden in that button’s individual style specification.
Here’s an example of such a button with its own style that I’d like to override the default
<UserControl>
<UserControl.Resources>
<Style x:Key="CloseButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<!-- My button's custom content here -->
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
<Button x:Name="btnClose" Style="{DynamicResource CloseButtonStyle}"/>
</UserControl>
Put the style below in Application.Resources in your App.xaml file.
UPDATE
In regards to the 3rd comment:
To achieve that, you need to leave just your control template in
UserControl.Resources:Then set
Templateproperty forButton: