<SettingsFlyout
    x:Name="pageRoot"
    x:Class="FooEditor.FileTypesFlyout"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FooEditor"
    xmlns:common="using:FooEditor.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    x:Uid="FileTypesFlyout">
    <ListView Grid.Row="1" ItemsSource="{Binding FileTypeCollection}" Name="FileTypeList"
                 Margin="30,0,0,0">
        <ListView.ItemTemplate>
            <DataTemplate>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding DocumentTypeName}" Width="150"/>
                    <Button x:Uid="ShowDetailButton" Command="{Binding ElementName=FileTypeList,Path=DataContext.ShowDetailCommand}" CommandParameter="{Binding}"/>
                </StackPanel>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>
</SettingsFlyout>
