<Window x:Class="Timelapser.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:tb="http://www.hardcodet.net/taskbar"
        xmlns:local="clr-namespace:Timelapser"
        mc:Ignorable="d" Height="200" Width="200" ResizeMode="CanMinimize" Title="Timelapser" Closing="Window_Closing" StateChanged="Window_StateChanged" Icon="Icon.ico">
    <Grid>
        <Label x:Name="label1" Content="Target:" HorizontalAlignment="Left" Margin="10,9,0,0" VerticalAlignment="Top" Height="32"/>
        <TextBox x:Name="TargetPath" Height="20" Margin="60,13,29,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top"/>
        <Button x:Name="BrowseButton" Content="..." Margin="0,13,10,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="14" Click="BrowseButton_Click"/>
        
        <Label x:Name="label2" Content="Images every:  (s)" HorizontalAlignment="Left" Margin="10,46,0,0" VerticalAlignment="Top"/>
        <Slider x:Name="AtComputerTime" Margin="10,77,10,0" VerticalAlignment="Top" Minimum="1" Maximum="120" LargeChange="5" Value="10" AutoToolTipPlacement="TopLeft" ToolTip="Active at computer"/>
        <Slider x:Name="AwayComputerTime" Margin="10,100,10,0" VerticalAlignment="Top" Minimum="1" Maximum="120" LargeChange="5" Value="60" AutoToolTipPlacement="TopLeft" ToolTip="Away from computer"/>
        
        <Button x:Name="StartStopButton" Content="Start" Margin="10,0,10,10" Height="20" VerticalAlignment="Bottom" Click="StartStopButton_Click"/>

        <tb:TaskbarIcon x:Name="TrayIcon"
                        ToolTipText="Timelapser (stopped)"
                        IconSource="Icon.ico"
                        TrayMouseDoubleClick="TrayIcon_TrayMouseDoubleClick"
                        Visibility="Hidden"
        />
    </Grid>
</Window>
