<Window x:Class="GridCircularPanel.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:GridCircularPanel"
        Title="" Height="262" Width="348" Name="window">
    <Grid Name="grid">
        <Grid.ColumnDefinitions>
            <!--I kolumna-->
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition/>
            <!--III kolumna-->
            <ColumnDefinition  Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <!--I wiersz-->
            <RowDefinition  Height="Auto"/>
            <RowDefinition Name="row1"/>
            <!--III wiersz-->
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Label Grid.Row="0" Grid.Column="0" Content="Etykieta"/>
        <TextBox Name="textBox1" Grid.Row="0" Grid.Column="1" />
        <Slider Name="slider1" Grid.RowSpan="2" Grid.Row="0" Grid.Column="3" Orientation="Vertical" Maximum="1" SmallChange="0.01">

        </Slider>
        <Label Grid.Row="1" Grid.Column="0"  Content="Przycisk"/>
        <local:CircularPanel Grid.Row="1" Grid.Column="1"  CircleBegining="{Binding ElementName=slider2, Path=Value}" CircleTotal="{Binding ElementName=slider1, Path=Value}">
            <Button Content="{Binding Path=Text, ElementName=textBox1}" MinWidth="30" MinHeight="30"></Button>
            <Button Content="{Binding Path=Text, ElementName=textBox1}"  MinWidth="30" MinHeight="30"></Button>
            <Button  Content="{Binding Path=Text, ElementName=textBox1}" MinWidth="30" MinHeight="30"></Button>
            <Button Content="{Binding Path=Text, ElementName=textBox1}" MinWidth="30" MinHeight="30"></Button>
            <Button Content="{Binding Path=Text, ElementName=textBox1}" MinWidth="30" MinHeight="30"></Button>
            <Button Content="{Binding Path=Text, ElementName=textBox1}" MinWidth="30" MinHeight="30"></Button>
            <Button Content="{Binding Path=Text, ElementName=textBox1}" MinWidth="30" MinHeight="30"></Button>
            <Button Content="{Binding Path=Text, ElementName=textBox1}" MinWidth="30" MinHeight="30"></Button>
            <Button Content="{Binding Path=Text, ElementName=textBox1}" MinWidth="30" MinHeight="30"></Button>
            <Button Content="{Binding Path=Text, ElementName=textBox1}" MinWidth="30" MinHeight="30"></Button>
        </local:CircularPanel>
        <Slider Name="slider2" Grid.ColumnSpan="2" Grid.Row="2" Grid.Column="0" Maximum="360" />
    </Grid>
</Window>