<Window x:Class="RepeatButton_Sample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:RepeatButton_Sample"
        mc:Ignorable="d"
        Title="RepeatButtonSample" Height="150" Width="300">
    <StackPanel>
        <Border Margin="5" HorizontalAlignment="Left" BorderThickness="1"  
          BorderBrush="Black">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Label Name="lblNumber" Grid.RowSpan="2" Content="0" VerticalAlignment="Center" MinWidth="40" />
                <RepeatButton Name="btnUp" Grid.Column="1" Click="btnUp_Click">
                    <Polygon Margin="4,0" Points="3,0 6,6 0,6 3,0" Stroke="Black" Fill="Black"/>
                </RepeatButton>
                <RepeatButton Name="btnDown" Grid.Row="1" Grid.Column="1" Click="btnDown_Click">
                    <Polygon Margin="4,0" Points="3,6 6,0 0,0 3,6" Stroke="Black" Fill="Black"/>
                </RepeatButton>
            </Grid>
        </Border>
    </StackPanel>
</Window>
