<UserControl xmlns:props="clr-namespace:Ink_Canvas.Properties" x:Class="Ink_Canvas.Controls.ImageOptionsPopupContent"
             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"
             xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"
             xmlns:controls="clr-namespace:Ink_Canvas.Controls;assembly=InkCanvas.Controls"
             xmlns:icons="clr-namespace:Ink_Canvas"
             xmlns:c="clr-namespace:Ink_Canvas.Converter"
             mc:Ignorable="d">
    <UserControl.Resources>
        <c:StringToGeometryConverter x:Key="StringToGeometryConverter" />
    </UserControl.Resources>
    <Grid>
        <controls:PopupShellContent x:Name="Shell" Title="{x:Static props:FloatingBarStrings.Board_SelectImage}"/>
        <ContentControl x:Name="InnerContentHost" Visibility="Collapsed" d:Visibility="Visible">
            <ikw:SimpleStackPanel Margin="4" Spacing="2">
                <Border x:Name="_ScreenshotOption" Background="Transparent" CornerRadius="3" Padding="6,4">
                    <Border.Style>
                        <Style TargetType="Border">
                            <Setter Property="Background" Value="Transparent"/>
                            <Style.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" Value="#f0f9ff"/>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </Border.Style>
                    <ikw:SimpleStackPanel Orientation="Horizontal" Spacing="6">
                        <Image Height="16" Width="16">
                            <Image.Source>
                                <DrawingImage>
                                    <DrawingImage.Drawing>
                                        <DrawingGroup ClipGeometry="M0,0 V24 H24 V0 H0 Z">
                                            <GeometryDrawing Brush="#2563eb"
                                                             Geometry="{Binding Source={x:Static icons:XamlGraphicsIconGeometries.ScreenshotIconGeometry}, Converter={StaticResource StringToGeometryConverter}}"/>
                                        </DrawingGroup>
                                    </DrawingImage.Drawing>
                                </DrawingImage>
                            </Image.Source>
                        </Image>
                        <TextBlock Text="{x:Static props:FloatingBarStrings.Board_Screenshot}" FontSize="10"
                                   Foreground="{DynamicResource TextForeground}" VerticalAlignment="Center"/>
                    </ikw:SimpleStackPanel>
                </Border>
                <Border x:Name="_SelectFileOption" Background="Transparent" CornerRadius="3" Padding="6,4">
                    <Border.Style>
                        <Style TargetType="Border">
                            <Setter Property="Background" Value="Transparent"/>
                            <Style.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" Value="#f0f9ff"/>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </Border.Style>
                    <ikw:SimpleStackPanel Orientation="Horizontal" Spacing="6">
                        <Image Height="16" Width="16">
                            <Image.Source>
                                <DrawingImage>
                                    <DrawingImage.Drawing>
                                        <DrawingGroup ClipGeometry="M0,0 V24 H24 V0 H0 Z">
                                            <GeometryDrawing Brush="#2563eb"
                                                             Geometry="F1 M24,24z M0,0z M19,3H5C3.9,3 3,3.9 3,5v14c0,1.1 0.9,2 2,2h14c1.1,0 2-0.9 2-2V5C21,3.9 20.1,3 19,3zM19,19H5V5h14V19z M17,7c-1.1,0-2,0.9-2,2s0.9,2 2,2 2-0.9 2-2S18.1,7 17,7zM7,17l2.5-3.01 1.96,2.36 2.54-3.21L17,17H7z"/>
                                        </DrawingGroup>
                                    </DrawingImage.Drawing>
                                </DrawingImage>
                            </Image.Source>
                        </Image>
                        <TextBlock Text="{x:Static props:FloatingBarStrings.Board_SelectImage}" FontSize="10"
                                   Foreground="{DynamicResource TextForeground}" VerticalAlignment="Center"/>
                    </ikw:SimpleStackPanel>
                </Border>
            </ikw:SimpleStackPanel>
        </ContentControl>
    </Grid>
</UserControl>
