<UserControl x:Class="NAudioWpfDemo.DrumMachineDemo.DrumMachineDemoView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="500" xmlns:my="clr-namespace:NAudioWpfDemo.DrumMachineDemo">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="262*" />
        </Grid.RowDefinitions>
        <my:DrumPatternEditor Grid.Row="1" HorizontalAlignment="Left" Margin="20" x:Name="drumPatternEditor1" VerticalAlignment="Top" />
        <StackPanel Orientation="Horizontal">
            <Button Content="Play" Command="{Binding PlayCommand}" Margin="6" Width="75" />
            <Button Content="Stop" Command="{Binding StopCommand}" Margin="6" Width="75" />
            <TextBlock Margin="6" Text="Tempo:" VerticalAlignment="Center" />
            <Slider Width="100" Value="{Binding Tempo, Mode=TwoWay}" Minimum="60" Maximum="180" Margin="6"/>
            <TextBlock Margin="6" Text="{Binding Tempo, StringFormat='\{0\}bpm'}" VerticalAlignment="Center" />
        </StackPanel>
    </Grid>
</UserControl>
