<?xml version="1.0" encoding="utf-8"?>
<Include
    xmlns="www.team-mediaportal.com/2008/mpf/directx"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Source="screens\master_menu.xaml"
    >
  <Include.Resources>

    <!-- Header -->
    <ResourceWrapper x:Key="Header_Text" Resource="[MyTestPlugin.ScreenTitle]"/>

    <!-- Contents -->
    <ControlTemplate x:Key="Contents_Template">
      <DockPanel Context="{Model Id=023c44f2-3329-4781-9b4a-c974444c0b0d}" LastChildFill="False">
                <Label Content="[MyTestPlugin.SampleText]" Color="{ThemeResource TextColor}" FontSize="36" DockPanel.Dock="Top" HorizontalAlignment="Left"/>
                <Label Content="{Binding FunctionButtonLabel}" Color="{ThemeResource TextColor}" DockPanel.Dock="Top"     HorizontalAlignment="Left"/>
                <Label Content="{Binding Config_MySetting_String}" Color="{ThemeResource TextColor}" DockPanel.Dock="Top"     HorizontalAlignment="Left"/>
                <Label Content="{Binding Message_Received}" Color="{ThemeResource TextColor}" DockPanel.Dock="Top"     HorizontalAlignment="Left"/>
                <StackPanel DockPanel.Dock="Left" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top">
                    <Button Content="[MyTestPlugin.ButtonText]" Style="{ThemeResource ButtonWideStyle}" Margin="10"   HorizontalAlignment="Center" VerticalAlignment="Center"   Command="{Command ChangeHelloWorldString}"/>
                    <Label Content="{Binding HelloString}" Color="{ThemeResource TextColor}" Margin="10" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                </StackPanel>

                <Button Content="[MyTestPlugin.PushButtonText]" Style="{ThemeResource ButtonWideStyle}" DockPanel.Dock="Top" HorizontalAlignment="Left" Command="{Command PushButtonFunction}"/>
                <Button Content="[MyTestPlugin.PopButtonText]" Style="{ThemeResource ButtonWideStyle}" DockPanel.Dock="Top" HorizontalAlignment="Left" Command="{Command PopButtonFunction}"/>
                <!--Example for key assignment with binding from config setting (see the SlimTVClient fullscreen screen for more examples) must be within the dock panel-->
                <KeyBinding Key="{Binding Config_MySetting_Key}" Command="{Command ChangeHelloWorldString}"/>
            </DockPanel>
      
            
        
    </ControlTemplate>

  </Include.Resources>
</Include>