<UserControl
    x:Class="AmbientSounds.Controls.LogoControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:animations="using:Microsoft.Toolkit.Uwp.UI.Animations"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI"
    xmlns:local="using:AmbientSounds.Controls"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    d:DesignHeight="300"
    d:DesignWidth="400"
    mc:Ignorable="d">

    <Button
        x:Uid="LogoButton"
        Width="40"
        Height="40"
        extensions:VisualExtensions.CenterPoint="20,20,0"
        Background="Transparent"
        CornerRadius="20"
        PointerEntered="ScaleUp"
        PointerExited="ScaleNormal">
        <Button.Resources>
            <Style TargetType="Button">
                <Setter Property="Padding" Value="0" />
            </Style>
        </Button.Resources>

        <Image Source="ms-appx:///Assets/logo.png" />

        <Button.Flyout>
            <Flyout>
                <local:AboutControl />
            </Flyout>
        </Button.Flyout>

        <animations:Implicit.Animations>
            <animations:ScaleAnimation Duration="0:0:0.5" />
        </animations:Implicit.Animations>
    </Button>
</UserControl>
