aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Views/MainView.xaml
blob: fcef3e2ea1d82cdbe064245c30080f40c113662b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<UserControl x:Class="Tango.AzureUtils.UI.Views.MainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:Tango.AzureUtils.UI.ViewModels"
             xmlns:global="clr-namespace:Tango.AzureUtils.UI"
             xmlns:views="clr-namespace:Tango.AzureUtils.UI.Views"
             xmlns:local="clr-namespace:Tango.AzureUtils.UI.Views"
             mc:Ignorable="d" 
             d:DesignHeight="900" 
             d:DesignWidth="1280" 
             d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" 
             DataContext="{x:Static global:ViewModelLocator.MainViewVM}" 
             Background="{StaticResource PrimaryBackgroundBrush}" 
             Foreground="{StaticResource PrimaryForegroundBrush}"
             IsEnabled="{Binding IsFree}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="70"/>
        </Grid.RowDefinitions>

        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10 0 0 0" FontSize="50">Azure Utils</TextBlock>

        <Button Command="{Binding InitCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="30 10" Margin="10" FontSize="20">Authenticate</Button>

        <Grid Grid.Row="1" IsEnabled="{Binding IsInitialized}">
            <TabControl Margin="10">
                <TabItem Header="Environment Upgrade Dashboard" Padding="5">
                    <views:EnvironmentUpgradeView/>
                </TabItem>
                <TabItem Header="Environment Creation Wizard" Padding="5">
                    <views:EnvironmentCreationView/>
                </TabItem>
            </TabControl>
        </Grid>

        <Border Grid.Row="2" Background="{StaticResource SecondaryBackgroundBrush}" BorderBrush="{StaticResource LightBorderBrush}" BorderThickness="0 1 0 0">
            <DockPanel Margin="10 0">
                <TextBlock DockPanel.Dock="Top" VerticalAlignment="Center" FontSize="18" FontWeight="SemiBold" Text="{Binding Progress.Stage,Converter={StaticResource EnumToDescriptionConverter}}"></TextBlock>

                <StackPanel DockPanel.Dock="Top" VerticalAlignment="Bottom" Margin="0 0 0 5">
                    <TextBlock VerticalAlignment="Bottom" Text="{Binding Progress.Message}"></TextBlock>
                    <ProgressBar Foreground="{StaticResource PrimaryForegroundBrush}" Height="15" VerticalAlignment="Bottom" Margin="0 2 0 0" IsIndeterminate="{Binding Progress.IsIndeterminate}" Maximum="{Binding Progress.Maximum}" Value="{Binding Progress.Progress}"></ProgressBar>
                </StackPanel>
            </DockPanel>
        </Border>
    </Grid>
</UserControl>