<UserControl
    x:Class="AmbientSounds.Controls.ViewCatalogueButton"
    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:converters="using:AmbientSounds.Converters"
    d:DesignHeight="300"
    d:DesignWidth="400"
    mc:Ignorable="d">

    <Grid>
        <Button
            x:Name="IconVersion"
            x:Uid="ViewCatalogueIcon"
            x:Load="{x:Bind IconOnly}"
            Click="{x:Bind IconNavigateToCatalogue}"
            Style="{StaticResource TransparentRoundButtonStyle}">
            <FontIcon FontFamily="{StaticResource FluentUIGlyphs}" Glyph="&#xEAD4;" />
        </Button>
        <Button
            x:Name="TextVersion"
            x:Uid="ViewCatalogueButton"
            x:Load="{x:Bind converters:VisibilityConverter.Invert(IconOnly)}"
            Background="Transparent"
            Click="{x:Bind NavigateToCatalogue}">
            <StackPanel Orientation="Horizontal">
                <TextBlock x:Uid="ViewCatalogue" />
                <FontIcon
                    Margin="8,0,0,0"
                    FontFamily="{StaticResource FluentUIGlyphs}"
                    Glyph="&#xE92B;" />
            </StackPanel>
        </Button>
    </Grid>
</UserControl>
