-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
87 lines (76 loc) · 4.54 KB
/
MainWindow.xaml
File metadata and controls
87 lines (76 loc) · 4.54 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<Window x:Class="OnSiteCompanion.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:local="clr-namespace:OnSiteCompanion"
mc:Ignorable="d"
Title="Cloudbeds - Reservations Query Example" Height="600" Width="1200" MinWidth="800" MinHeight="500"
Loaded="Window_Loaded" SizeChanged="Window_SizeChanged"
StateChanged="Window_StateChanged"
Closed="Window_Closed" FontFamily="Poppins">
<Window.Resources>
<Style x:Key="MenuButton" TargetType="Button">
<Setter Property="Background" Value="#ffffff"></Setter>
<Setter Property="Foreground" Value="#404040"></Setter>
<Setter Property="FontSize" Value="14"></Setter>
<Setter Property="FontWeight" Value="Medium"></Setter>
<Setter Property="HorizontalAlignment" Value="Left"></Setter>
<Setter Property="Padding" Value="5,5,20,5"></Setter>
<Setter Property="BorderThickness" Value="1"></Setter>
<Setter Property="BorderBrush" Value="#ffffff"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}" Margin="0,0,0,0" Padding="5,5,5,5" CornerRadius="5" BorderThickness="1" MinWidth="195">
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#F5F7FF"/>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid x:Name="gridMaster" Width="800" HorizontalAlignment="Left">
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Border Grid.Row="0" Grid.Column="0" BorderThickness="0,0,1,0" BorderBrush="#c0c0c0">
<StackPanel Orientation="Vertical" Background="#ffffff">
<Button Style="{StaticResource MenuButton}" Click="NavigateApp_ShowHome" Cursor="Hand" >🏠 Home</Button>
<Button Style="{StaticResource MenuButton}" Click="NavigateApp_ShowOperationalReport_v2" Cursor="Hand" >📁 Operational Report (v2)</Button>
<Button Style="{StaticResource MenuButton}" Click="NavigateApp_ShowOperationalReport_v1" Cursor="Hand" >📁 Operational Report (v1)</Button>
<Button Style="{StaticResource MenuButton}" Click="NavigateApp_ShowStatusLogs" Cursor="Hand" >🔧 Status Logs</Button>
<Button Style="{StaticResource MenuButton}" Click="NavigateApp_ShowSetup" Cursor="Hand" >⚙ Setup</Button>
</StackPanel>
</Border>
<ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="0" Grid.Column="1" >
<StackPanel Orientation="Vertical" x:Name="mainContentArea" Background="#F1F3F4"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Margin="10,0,10,0">
<StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" Background="Green">
<TextBlock>TEST 234123</TextBlock>
</StackPanel>
</StackPanel>
</ScrollViewer>
</Grid>
<StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Bottom" Orientation="Horizontal" Background="#E0F0E0">
<TextBlock x:Name="textSystemStatus">Status text here...</TextBlock>
</StackPanel>
</Grid>
</Window>