<Page xmlns:local="clr-namespace:ForzaUI"
	  xmlns:System="clr-namespace:System;assembly=mscorlib"
      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"  
	  x:Class="ForzaUI.Scenes.Anthem.A_OptionPreviewPopup"
      mc:Ignorable="d"
	  Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      >
    <Page.Resources>
        <ResourceDictionary>
            <DataTemplate DataType="{x:Type OptionsMenuImageOptionPreview}">
                <FZMaterial ImageSource="{Binding FullscreenPath}" Stretch="Uniform"/>
            </DataTemplate>

            <DataTemplate DataType="{x:Type OptionsMenuVideoOptionPreview}">
                <FZMediaElement x:Name="PART_SignLanguage_Video"
                                        Source="{Binding FullscreenPath}"
                                        FzMediaElementExtension.Loop="True"
                                        LoadedBehavior="Play"
                                        UnloadedBehavior="Close"
                                        />
            </DataTemplate> 

            <DataTemplate DataType="{x:Type OptionsMenuMultiOptionPreview}">
                <ContentPresenter Content="{Binding SelectedPreview}"/>
            </DataTemplate>
        </ResourceDictionary>
    </Page.Resources>

    <Grid>
        <FZMaterial Color="{StaticResource H_Color_Primary_Black}"/>
        <ContentPresenter Content="{Binding Preview}" />
        
        <FZMaterialGlassCapture />

        <ContentControl
            x:Name="BottomBar"
            Style="{StaticResource A_Style_ButtonBar}">
            <ControllerButtonPanel
                x:Name="PART_HelpPanel"
                Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                <ControllerButtonControl
                    Button="B"
                    Description="{Loc HelpButtons.IDS_Back}" />
            </ControllerButtonPanel>
        </ContentControl>
    </Grid>
</Page>
