<Window x:Class="BankTV.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:w="clr-namespace:BankTV.Controls"
        Title="MainWindow" Height="720" Width="1280"
        WindowStyle="None" ResizeMode="NoResize"  
        WindowStartupLocation="CenterScreen" WindowState="Maximized" Loaded="Window_Loaded">
    <Window.Resources>
        <Storyboard x:Key="imageFadeOut">
            <DoubleAnimation From="1" To="0" Storyboard.TargetName ="image" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="imageFadeIn">
            <DoubleAnimation From="0" To="1" Storyboard.TargetName ="image" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="playerFadeOut">
            <DoubleAnimation From="1" To="0" Storyboard.TargetName ="player" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="playerFadeIn" Completed="playerFadeInCompleted">
            <DoubleAnimation From="0" To="1" Storyboard.TargetName ="player" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="newsFadeOut">
            <DoubleAnimation From="1" To="0" Storyboard.TargetName ="newsContent" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="newsFadeIn">
            <DoubleAnimation From="0" To="1" Storyboard.TargetName ="newsContent" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="currencyFadeOut">
            <DoubleAnimation From="1" To="0" Storyboard.TargetName ="currencyContent" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="currencyFadeIn">
            <DoubleAnimation From="0" To="1" Storyboard.TargetName ="currencyContent" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="weatherFadeOut">
            <DoubleAnimation From="1" To="0" Storyboard.TargetName ="weatherContent" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="weatherFadeIn">
            <DoubleAnimation From="0" To="1" Storyboard.TargetName ="weatherContent" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="flashFadeOut">
            <DoubleAnimation From="1" To="0" Storyboard.TargetName ="flashContent" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
        <Storyboard x:Key="flashFadeIn">
            <DoubleAnimation From="0" To="1" Storyboard.TargetName ="flashContent" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0:0:1"/>
        </Storyboard>
    </Window.Resources>
    <Grid Background="#FF000000" Name="gridMain">        
        <Image x:Name="logoOverlay" Source="Images/logo.jpg" Stretch="Fill"/>        
        <MediaElement x:Name="player" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" IsMuted="True" Volume="0" Stretch="Fill"/>
        <Image x:Name="image" Stretch="Fill"/>
        <w:NewsContent x:Name="newsContent" Visibility="Hidden"/>
        <w:WeatherContent x:Name="weatherContent" Visibility="Hidden"/>
        <w:CurrencyContent x:Name="currencyContent" Visibility="Hidden"/>
        <w:FlashControl x:Name="flashContent" Visibility="Hidden"/>
        <w:TopBar x:Name="topBar" Width="auto" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,10,0,0"/>
        <w:BottomBar x:Name="bottomBar" Width="auto" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="0,0,0,37"/>
    </Grid>
</Window>