Ghost1372

everything can be handy

RepeatButton

RepeatButtonBaseStyle : ButtonBaseBaseStyle

The default style of the repeatButton is not recommended for direct use and should always be used by other styles in the BasedOn mode.

All repeatButtons that inherit this style can use the additional properties defined in IconElement to control the properties of the geometry in the repeatButton.

All repeatButtons that inherit this style can use the BorderElement.CornerRadius attached property to control the fillet size of the repeatButton.

Example:

1
2
3
4
5
6
<StackPanel Orientation="Horizontal">
<RepeatButton Content="This is a RepeatButton"/>
<RepeatButton Content="This is a RepeatButton" Margin="10,0,0,0" hc:BorderElement.CornerRadius="15"/>
  <RepeatButton Content="This is a RepeatButton" Margin="10,0,0,0"
hc:IconElement.Geometry="{StaticResource GithubGeometry}"/>
</StackPanel>

ButtonBaseStyle

RepeatButtonPrimary : RepeatButtonBaseStyle

Main RepeatButton

Example:

1
2
3
4
5
<StackPanel Orientation="Horizontal">
<RepeatButton Style="{StaticResource RepeatButtonPrimary}" Content="This is a RepeatButton"/>
   <RepeatButton Style="{StaticResource RepeatButtonPrimary}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:BorderElement.CornerRadius="15"/>
<RepeatButton Style="{StaticResource RepeatButtonPrimary}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:IconElement.Geometry="{StaticResource GithubGeometry}"/>
</StackPanel>

ButtonPrimary

RepeatButtonSuccess : RepeatButtonBaseStyle

Success RepeatButton

Example:

1
2
3
4
5
<StackPanel Orientation="Horizontal">
<RepeatButton Style="{StaticResource RepeatButtonSuccess}" Content="This is a RepeatButton"/>
   <RepeatButton Style="{StaticResource RepeatButtonSuccess}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:BorderElement.CornerRadius="15"/>
   <RepeatButton Style="{StaticResource RepeatButtonSuccess}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:IconElement.Geometry="{StaticResource GithubGeometry}"/>
</StackPanel>

ButtonSuccess

RepeatRepeatButtonInfo : RepeatButtonBaseStyle

Information RepeatButton

Example:

1
2
3
4
5
<StackPanel Orientation="Horizontal">
<RepeatButton Style="{StaticResource RepeatButtonInfo}" Content="This is a RepeatButton"/>
  <RepeatButton Style="{StaticResource RepeatButtonInfo}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:BorderElement.CornerRadius="15"/>
  <RepeatButton Style="{StaticResource RepeatButtonInfo}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:IconElement.Geometry="{StaticResource GithubGeometry}"/>
</StackPanel>

ButtonInfo

RepeatButtonWarning : RepeatButtonBaseStyle

Warning RepeatButton

Example:

1
2
3
4
5
<StackPanel Orientation="Horizontal">
<RepeatButton Style="{StaticResource RepeatButtonWarning}" Content="This is a RepeatButton"/>
<RepeatButton Style="{StaticResource RepeatButtonWarning}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:BorderElement.CornerRadius="15"/>
<RepeatButton Style="{StaticResource RepeatButtonWarning}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:IconElement.Geometry="{StaticResource GithubGeometry}"/>
</StackPanel>

ButtonWarning

RepeatButtonDanger : RepeatButtonBaseStyle

Danger RepeatButton

Example:

1
2
3
4
5
<StackPanel Orientation="Horizontal">
<RepeatButton Style="{StaticResource RepeatButtonDanger}" Content="This is a RepeatButton"/>
<RepeatButton Style="{StaticResource RepeatButtonDanger}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:BorderElement.CornerRadius="15"/>
<RepeatButton Style="{StaticResource RepeatButtonDanger}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:IconElement.Geometry="{StaticResource GithubGeometry}"/>
</StackPanel>

ButtonDanger

RepeatButtonDefault : RepeatButtonBaseStyle

Default RepeatButton

Example:

1
2
3
4
5
<StackPanel Orientation="Horizontal">
<RepeatButton Style="{StaticResource RepeatButtonDefault}" Content="This is a RepeatButton"/>
<RepeatButton Style="{StaticResource RepeatButtonDefault}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:BorderElement.CornerRadius="15"/>
<RepeatButton Style="{StaticResource RepeatButtonDefault}" Content="This is a RepeatButton" Margin="10,0,0,0" hc:IconElement.Geometry="{StaticResource GithubGeometry}"/>
</StackPanel>

RepeatButtonIcon : RepeatButtonBaseStyle

This style is recommended if you only want to display the geometry RepeatButton.

Example:

1
2
3
4
5
<StackPanel Orientation="Horizontal">
<RepeatButton Style="{StaticResource RepeatButtonIcon}" Foreground="Black" hc:IconElement.Geometry="{StaticResource UpDownGeometry}"/>
<RepeatButton Style="{StaticResource RepeatButtonIcon}" Background="Black" Foreground="White" hc:BorderElement.CornerRadius="15" hc:IconElement.Geometry="{StaticResource UpDownGeometry}" Margin="10,0,0,0"/>
<RepeatButton Style="{StaticResource RepeatButtonIcon}" BorderThickness="1" BorderBrush="Black" Foreground="Black" hc:IconElement.Geometry="{StaticResource UpDownGeometry}" Margin="10,0,0,0"/>
</StackPanel>

ButtonIcon

RepeatButtonCustom

This style is recommended if you want to fully customize the content of the RepeatButton. The content in RepeatButtonCustom is entirely up to you. In addition, you can switch the background with additional properties in BackgroundSwitchElement:

Example:

1
<RepeatButton Height="30" Padding="10,0" Background="Black" Foreground="White" Content="This is a RepeatButton" Style="{StaticResource RepeatButtonCustom}" hc:BackgroundSwitchElement.MouseHoverBackground="Red" hc:BackgroundSwitchElement.MouseDownBackground="PaleVioletRed"/>

ButtonCustom

Styles

Style
RepeatButtonPrimary
RepeatButtonInfo
RepeatButtonDanger
RepeatButtonWarning
RepeatButtonDefault
RepeatButtonSuccess
RepeatButtonIcon
RepeatButtonIconCircular
RepeatButtonDashed
RepeatButtonDashedPrimary
RepeatButtonDashedSuccess
RepeatButtonDashedInfo
RepeatButtonDashedWarning
RepeatButtonDashedDanger
RepeatButtonCustom
RepeatButtonGroupItemDefault
RepeatButtonGroupItemHorizontalFirst
RepeatButtonGroupItemHorizontalLast
RepeatButtonGroupItemSingle
RepeatButtonGroupItemVerticalFirst
RepeatButtonGroupItemVerticalLast
RepeatButtonDefault.Small
RepeatButtonPrimary.Small
RepeatButtonInfo.Small
RepeatButtonDanger.Small
RepeatButtonWarning.Small
RepeatButtonSuccess.Small
RepeatButtonIcon.Small
RepeatButtonIconCircular.Small
RepeatButtonDashed.Small
RepeatButtonDashedPrimary.Small
RepeatButtonDashedSuccess.Small
RepeatButtonDashedInfo.Small
RepeatButtonDashedWarning.Small
RepeatButtonDashedDanger.Small
0%