<ContentDialog
    x:Class="FooEditor.UWP.Views.OpenRecentlyView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FooEditor.UWP.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="using:Prism.Windows.Mvvm"
    mc:Ignorable="d"
    x:Uid="OpenRecentlyDialog"
    PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
    SecondaryButtonClick="ContentDialog_SecondaryButtonClick"
    prism:ViewModelLocator.AutoWireViewModel="True"
    IsPrimaryButtonEnabled="{Binding EnablePrimaryButton,Mode=OneWay}"
    >

    <Grid>
        <ListBox ItemsSource="{Binding RecentFiles}" SelectedItem="{Binding FilePath,Mode=TwoWay}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding FileName}" ToolTipService.ToolTip="{Binding FilePath}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</ContentDialog>
