<controls:MetroWindow x:Class="Hearthstone_Deck_Tracker.Windows.BattlegroundsSessionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:themes="clr-namespace:Hearthstone_Deck_Tracker.Utility.Themes"
        xmlns:battlegrounds="clr-namespace:Hearthstone_Deck_Tracker.Controls.Overlay.Battlegrounds.Session"
        xmlns:windows="clr-namespace:Hearthstone_Deck_Tracker.Windows"
        xmlns:lex="http://wpflocalizeextension.codeplex.com"
        lex:LocalizeDictionary.DesignCulture="en"
        lex:ResxLocalizationProvider.DefaultAssembly="HearthstoneDeckTracker"
        lex:ResxLocalizationProvider.DefaultDictionary="Strings"
        Title="{lex:Loc Options_Overlay_Battlegrounds_Group_Label}"
        SizeToContent="WidthAndHeight"
        ResizeMode="CanMinimize"
        Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"
        Icon="{StaticResource AppIcon}"
        MaxHeight="269"
        MaxWidth="218"
        Loaded="BattlegroundsSessionWindow_OnLoaded"
        Activated="BattlegroundsSessionWindow_OnActivated"
        Deactivated="BattlegroundsSessionWindow_OnDeactivated">
    <controls:MetroWindow.Resources>
        <themes:ThemeManager x:Key="ThemeManager"/>
    </controls:MetroWindow.Resources>
    <controls:MetroWindow.IconTemplate>
        <DataTemplate>
            <Rectangle Margin="2" Opacity="0.7">
                <Rectangle.Fill>
                    <VisualBrush Visual="{StaticResource hdticon}" />
                </Rectangle.Fill>
            </Rectangle>
        </DataTemplate>
    </controls:MetroWindow.IconTemplate>
    <Canvas Height="1080" Width="1920">
        <battlegrounds:BattlegroundsSession
            x:Name="BattlegroundsSession"
            DataContext="{Binding BattlegroundsSessionViewModelVM, RelativeSource={RelativeSource AncestorType=windows:BattlegroundsSessionWindow}}"
        />
    </Canvas>
</controls:MetroWindow>
