Skip to content
Discussion options

You must be logged in to vote

Example:

 <Style x:Key="MyToolboxButton" TargetType="Button" 
-   BasedOn="{StaticResource {x:Type Button}}">
+   BasedOn="{StaticResource {x:Static ui:ThemeKeys.DefaultButtonStyleKey}}">
    <Setter Property="Background" Value="Transparent"/>
    <Setter Property="Margin" Value="2"/>
    <Setter Property="BorderBrush" Value="Transparent"/>
    <Setter Property="BorderThickness" Value="0"/>
    <Setter Property="VerticalAlignment" Value="Stretch"/>
    <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    <Setter Property="VerticalContentAlignment" Value="Stretch"/>
</Style>

If this helps, please mark it as answer, otherwise just ask.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Supheria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants