The RepeatButton XAML element
represents a WPF RepeatButton control.
<Button/>
The Width and Height
attributes represent the width and the height of a RepeatButton. The Content
property sets the text of button. The Name attribute represents the name of the
control, which is a unique identifier of a control.
The code snippet in Listing
1 creates a Button control and sets its name, height, width, and content.
<RepeatButton Margin="10,10,0,0"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Name="GrowButton"
Width="80" Height="30">
</RepeatButton>
Listing 1
The default property of a button is Content. The code
snippet in Listing 2 creates the same button as created by Listing 1.
<RepeatButton Margin="10,10,0,0"
VerticalAlignment="Top" HorizontalAlignment="Left"
Name="GrowButton"
Width="80" Height="30">
Grow
</RepeatButton>
Listing 2