﻿<Window x:Class="PM_view.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" Height="400" Width="624" Loaded="Window_Loaded_1"
        xmlns:DV="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
        xmlns:DVC="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit">    <!--Přidávám odkaz na WPF Toolkit kvůli Kreslení grafů: http://wpf.codeplex.com/ ; návod: http://www.c-sharpcorner.com/uploadfile/mahesh/charting-in-wpf/-->
    <!--Title="PM_View" Height="394" Width="601" xmlns:my="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon">--> <!--připravený prvek Ribbon možná půjde místo menu-->
        <!--Windows forms jsou zde kvůli hostování prvku - postup je na odkazu: http://msdn.microsoft.com/en-us/library/ms742875.aspx-->
   
    
    
        
    <Grid Name="grid">
        
        <!--plochy vlastního grafu-->
        <!--pokus-Canvas-->
        <Canvas Height="192" HorizontalAlignment="Left" Margin="410,146,0,0" Name="graf2" VerticalAlignment="Top" Width="167" Background="LightBlue"/>
        
        <!--pokus s WPF Toolkit-->
        <DVC:Chart Canvas.Top="80" Canvas.Left="10" Name="mcChart" Background="LightSteelBlue" Margin="139,146,212,23">
            <DVC:Chart.Series>
                <DVC:BarSeries Title="Experience" 
                IndependentValueBinding="{Binding Path=Key}"
                DependentValueBinding="{Binding Path=Value}">
                </DVC:BarSeries>
            </DVC:Chart.Series>

        </DVC:Chart>
        <StackPanel Name="SlidePanel1" Orientation="Horizontal" Margin="0,146,0,12" Background="Aqua" HorizontalAlignment="Left" Width="100">
            <TextBlock Height="15" Name="Tabulka" Text="TextBlock">
                <TextBlock.LayoutTransform>
                    <RotateTransform Angle="90"/>
                </TextBlock.LayoutTransform>
            </TextBlock>
            <!--<WindowsFormsHost Height="146" Name="WFHost" Width="230">-->
                <!--Do hostovacího pole se vložíl hostovaný prvek WinForm DataGeidView-->
                <!--<wf:DataGridView x:Name="tabView2" Resize="tabView2_Resize"
                   BackgroundColor="White" BorderStyle="Fixed3D" />-->
                <!--</WindowsFormsHost>-->

            <DataGrid Height="Auto" Width="Auto" Name="tabView3" ItemsSource="{Binding}" />
            <StackPanel.Triggers>
                <EventTrigger RoutedEvent="StackPanel.MouseEnter">
                    <EventTrigger.Actions>
                        <BeginStoryboard>
                            <Storyboard TargetProperty ="Width" >
                                <DoubleAnimation From="10" To="590" Duration="0:0:1"/>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger.Actions>
                </EventTrigger>
                <EventTrigger RoutedEvent="StackPanel.MouseLeave">
                    <EventTrigger.Actions>
                        <BeginStoryboard>
                            <Storyboard TargetProperty ="Width" >
                                <DoubleAnimation From="590" To="10" Duration="0:0:0.001"/>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger.Actions>
                </EventTrigger>
            </StackPanel.Triggers>
          </StackPanel>
       <TextBox  Name="InfoText" Margin="0,0,25,277" HorizontalAlignment="Right" Width="218" Height="84" />
       <TextBox Margin="0,31,302,306" Name="SQL_dotaz_Text" HorizontalAlignment="Right" Width="288" Height="24" />
       <ComboBox Margin="12,74,267,258" Name="CB_dotazy" />
        
        
        <Menu Height="25" HorizontalAlignment="Left" Name="menu1" VerticalAlignment="Top" Width="335">
            <MenuItem Header="_Menu">
                <MenuItem Header="_Zavři" Name="Menu_Close" Click="Menu_Close_Click"/>
                <MenuItem Header="_Připoj" Name="Menu_ConnectDB" Click="Menu_ConnectDB_Click"/>
                <MenuItem Header="_Smaž tabulku" Name="Menu_ClearTab" Click="Menu_ClearTab_Click"/>
                <!--<MenuItem Header="_Smaž Info box" Name="Menu_ClearInfoBox" Click="Menu_ClearInfoBox_Click"/>-->
            </MenuItem>
        </Menu>
        <Button Content="Kresli" Height="23" HorizontalAlignment="Left" Margin="443,106,0,0" Name="kresli" VerticalAlignment="Top" Width="75" Click="kresli_Click" />
        <Button Content="Napln graf" Height="23" HorizontalAlignment="Left" Margin="214,117,0,0" Name="graf" VerticalAlignment="Top" Width="86" Click="graf_Click" />
    </Grid>
</Window>
