<Page
    x:Class="FooEditor.PropertyFlyout"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FooEditor"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Width="300"
    Height="270">
    <Page.Resources>
        <local:LineFeedConverter x:Key="LineFeedConverter"/>
    </Page.Resources>
    <Border Style="{StaticResource FlyoutBorderStyle}" BorderBrush="{StaticResource ApplicationForegroundThemeBrush}">
        <StackPanel x:Name="FlyoutContent" Style="{StaticResource LayoutRootStyle}">
            <StackPanel Orientation="Vertical" Margin="20">
                <TextBlock x:Uid="DocumentTypeLabel" Margin="0,10,0,0" Style="{StaticResource BasicTextStyle}"/>
                <ComboBox ItemsSource="{Binding FileTypeCollection}" Width="150" SelectedItem="{Binding DocumentType,Mode=TwoWay}" Margin="0,10,0,0">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding DocumentTypeName}"/>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <TextBlock x:Uid="EncodeTypeLabel" Margin="0,10,0,0" Style="{StaticResource BasicTextStyle}"/>
                <ComboBox ItemsSource="{Binding EncodeCollection}" Width="150" SelectedItem="{Binding Encode,Mode=TwoWay}" Margin="0,10,0,0">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding WebName}"/>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <TextBlock x:Uid="LineFeedTypeLabel" Margin="0,10,0,0" Style="{StaticResource BasicTextStyle}"/>
                <ComboBox ItemsSource="{Binding LineFeedCollection}" Width="150" SelectedItem="{Binding LineFeed,Mode=TwoWay}" Margin="0,10,0,0">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Converter={StaticResource LineFeedConverter}}"/>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
            </StackPanel>
        </StackPanel>
    </Border>
</Page>
