Source

MusicRater / MusicRater / Views / ToolbarControl.xaml

<UserControl x:Class="MusicRater.ToolbarControl"
    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"
    mc:Ignorable="d"
    d:DesignHeight="40" d:DesignWidth="400">
    
    <Border x:Name="LayoutRoot" Background="#304060" CornerRadius="5">
        <StackPanel Orientation="Horizontal">
            <Button Style="{StaticResource MarkRoundButton}" Height="32" Margin="2" Width="32" Command="{Binding PlayCommand}" ToolTipService.ToolTip="Play">
                <Path Fill="White" Data="M 0,0 l 2,1 l -2,1 Z" Stretch="UniformToFill" Width="16" Height="16" />
            </Button>
            <Button Style="{StaticResource MarkRoundButton}" Height="32" Margin="2" Width="32" Command="{Binding PauseCommand}" ToolTipService.ToolTip="Pause">
                <Path Fill="White" Data="M 0,0 h 1 v 2 h -1 Z M 1.5,0 h 1 v 2 h -1 Z" Stretch="Fill" Width="16" Height="16" />
            </Button>
            <Button Style="{StaticResource MarkRoundButton}" Height="32" Margin="2" Width="32" Command="{Binding PrevCommand}" ToolTipService.ToolTip="Previous">
                <Path Fill="White" Data="F1 M 0,0 h 0.5 v 2 h -0.5 Z M 0, 1 l 2, -1 v 2 Z" Stretch="UniformToFill" Width="16" Height="16" />
            </Button>
            <Button Style="{StaticResource MarkRoundButton}" Height="32" Margin="2" Width="32" Command="{Binding NextCommand}" ToolTipService.ToolTip="Next">
                <Path Fill="White" Data="F1 M 0,0 l 2,1 l -2,1 Z M 1.5,0 h 1 v 2 h -1 Z" Stretch="UniformToFill" Width="16" Height="16" />
            </Button>
            <Button Style="{StaticResource MarkRoundButton}" Height="32" Margin="2" Width="32" Command="{Binding AnonCommand}" ToolTipService.ToolTip="Anonymize">
                <Path Data="M3.0625,11.942552 L6.2421875,11.942552 L6.2421875,14.747239 L3.0625,14.747239 z M5.03125,3.0988016 C6.1666665,3.0988016 7.083333,3.3357811 7.78125,3.8097391 C8.729166,4.4503641 9.203125,5.3045311 9.203125,6.3722391 C9.203125,6.8149481 9.0807285,7.2420311 8.8359375,7.6534891 C8.5911455,8.0649471 8.0911455,8.5675516 7.3359375,9.1613016 C6.8098955,9.5779686 6.4778643,9.9126034 6.3398438,10.165208 C6.2018228,10.417812 6.1328125,10.747239 6.1328125,11.153489 L3.1640625,11.153489 L3.1640625,10.856614 C3.1640623,10.351406 3.221354,9.9412498 3.3359375,9.6261454 C3.4505208,9.3110409 3.6210938,9.0232811 3.8476563,8.7628641 C4.0742188,8.5024481 4.583333,8.0441151 5.375,7.3878641 C5.796875,7.0441146 6.0078125,6.7290106 6.0078125,6.4425516 C6.0078125,6.1560936 5.9231768,5.9334373 5.7539063,5.7745829 C5.5846353,5.6157293 5.328125,5.5363016 4.984375,5.5363016 C4.614583,5.5363016 4.3085938,5.6586981 4.0664063,5.9034891 C3.8242185,6.1482811 3.6692705,6.5753641 3.6015625,7.1847391 L0.57031256,6.8097391 C0.67447913,5.6951561 1.0794271,4.7980204 1.7851564,4.1183329 C2.4908853,3.4386454 3.5729165,3.0988016 5.03125,3.0988016 z" Height="17.926" RenderTransformOrigin="0.5,0.5" Stretch="Fill" UseLayoutRounding="False" Width="14.015">
                    <Path.Fill>
                        <SolidColorBrush Color="White">
                            <SolidColorBrush.RelativeTransform>
                                <MatrixTransform Matrix="Identity"/>
                            </SolidColorBrush.RelativeTransform>
                            <SolidColorBrush.Transform>
                                <MatrixTransform Matrix="Identity"/>
                            </SolidColorBrush.Transform>
                        </SolidColorBrush>
                    </Path.Fill>
                    <Path.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Path.RenderTransform>
                </Path>
            </Button>
            <Button Style="{StaticResource MarkRoundButton}" Height="32" Margin="2" Width="32" Command="{Binding ConfigCommand}" ToolTipService.ToolTip="Configure">
                <Path Fill="White" Data="M 0,6 h 6 v 1 h 6 l 2,-.5 l 2,.5 v 1 l -2,.5 l -2,-.5 h -6 v 1 h -6 Z" Width="16" Height="16">
                    <Path.RenderTransform>
                        <RotateTransform Angle="-45" CenterX="8" CenterY="8" />
                    </Path.RenderTransform>
                </Path>
            </Button>
            <Button Style="{StaticResource MarkRoundButton}" Height="32" Margin="2" Width="32" Command="{Binding OpenCommand}" ToolTipService.ToolTip="Open">
                <Path Fill="White" Data="F1 M 0,4 h 4 v -1 h -4 Z M 0,2 h 4 l -2,-2  Z" Stretch="UniformToFill" Width="16" Height="16" />
            </Button>

        </StackPanel>
    </Border>
</UserControl>