aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Views/EnvironmentLogStreamView.xaml
blob: fbfbf8d6c5ee4e50d7239e296fd31673d4cdb4df (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
<UserControl x:Class="Tango.AzureUtils.UI.Views.EnvironmentLogStreamView"
             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:components="clr-namespace:Tango.SharedUI.Components;assembly=Tango.SharedUI"
             xmlns:helpers="clr-namespace:Tango.SharedUI.Helpers;assembly=Tango.SharedUI"
             xmlns:global="clr-namespace:Tango.AzureUtils.UI"
             xmlns:localControls="clr-namespace:Tango.AzureUtils.UI.Controls"
             xmlns:local="clr-namespace:Tango.AzureUtils.UI.Views"
             mc:Ignorable="d" 
             d:DesignHeight="700" 
             d:DesignWidth="1100" 
             d:DataContext="{d:DesignInstance Type=vm:EnvironmentLogStreamViewVM, IsDesignTimeCreatable=False}" 
             DataContext="{x:Static global:ViewModelLocator.EnvironmentLogStreamViewVM}" 
             Background="{StaticResource PrimaryBackgroundBrush}" 
             Foreground="{StaticResource PrimaryForegroundBrush}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="50*" MaxWidth="500" />
            <ColumnDefinition Width="60*"/>
        </Grid.ColumnDefinitions>

        <GroupBox Header="Source Deployment Slot" Padding="5" Margin="10">
            <DockPanel>
                <ComboBox IsEnabled="{Binding IsStarted,Converter={StaticResource BooleanInverseConverter}}" DockPanel.Dock="Top" ItemsSource="{Binding DeploymentSlots}" SelectedItem="{Binding SelectedDeploymentSlot}" DisplayMemberPath="Name"></ComboBox>

                <localControls:WebAppPropertiesControl VerticalAlignment="Top" Margin="0 20 0 0" DataContext="{Binding SelectedDeploymentSlot}" />
            </DockPanel>
        </GroupBox>

        <Grid Grid.Column="1">
            <GroupBox Header="Logs" Margin="10" Padding="10">
                <DockPanel>
                    <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" DockPanel.Dock="Bottom" Height="40" Margin="0 10 0 0">
                        <Button Command="{Binding ClearCommand}" Padding="40 0" Margin="0 0 10 0">CLEAR</Button>
                        <Button Command="{Binding StopCommand}" Padding="40 0">STOP</Button>
                        <Button Command="{Binding StartCommand}" Padding="40 0">START</Button>
                    </StackPanel>
                    <TextBox components:TextController.Controller="{Binding Log}" AcceptsReturn="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" IsReadOnlyCaretVisible="True" BorderThickness="0"></TextBox>
                </DockPanel>
            </GroupBox>
        </Grid>
    </Grid>
</UserControl>