add copy&paste stuff
[GitHub/Stricted/SpeedportHybridControl.git] / SpeedportHybridControl / MainWindow.xaml
1 <Window x:Class="SpeedportHybridControl.MainWindow"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6 xmlns:local="clr-namespace:SpeedportHybridControl"
7 mc:Ignorable="d"
8 Closing="Window_Closing"
9 SizeChanged="update_size"
10 Height="350"
11 Width="530"
12 MinHeight="350"
13 MinWidth="530"
14 Title="Speedport Hybrid Konfigurationsprogramm"
15 Icon="t-com icon.ico">
16 <Grid DataContext="{StaticResource MainWindowModel}" >
17 <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left">
18 <StackPanel.Resources>
19 <Style TargetType="{x:Type Button}">
20 <Setter Property="Margin" Value="3,0,0,0"/>
21 </Style>
22 </StackPanel.Resources>
23
24 <Button IsEnabled="True" Background="LightGreen" Click="button_click" x:Name="btnLogin" Content="Login"/>
25 <Button IsEnabled="True" Background="LightGray" Click="button_click" x:Name="btnStatus" Content="Status"/>
26 <Button IsEnabled="False" Background="LightGray" Click="button_click" x:Name="btnOverview" Content="Overview"/>
27 <Button IsEnabled="{Binding Path=ButtonDSLPageIsActive}" Command="{Binding Path=SwitchToDSLPage}" Background="LightGray" x:Name="btnDsl" Content="DSL"/>
28 <Button IsEnabled="False" Background="LightGray" Click="button_click" x:Name="btnLteInfo" Content="LteInfo"/>
29 <Button IsEnabled="False" Background="LightGray" Click="button_click" x:Name="btnSyslog" Content="Syslog"/>
30 <Button IsEnabled="False" Background="LightGray" Click="button_click" x:Name="btnTR181" Content="TR-181"/>
31 <Button IsEnabled="False" Background="LightGray" Click="button_click" x:Name="btnPhone" Content="Anrufe"/>
32 <Button IsEnabled="False" Background="LightGray" Click="button_click" x:Name="btnLan" Content="Lan"/>
33 <Button IsEnabled="False" Background="LightGray" Click="button_click" x:Name="btnControls" Content="Controls"/>
34 </StackPanel>
35
36 <Button Command="{Binding Path=SwitchToAboutPage}" IsEnabled="True" Background="LightGray" x:Name="btnAbout" Content="Über" VerticalAlignment="Top" HorizontalAlignment="Right" Width="32" Margin="0,0,3,0"/>
37
38 <DockPanel Margin="0,22,0,0">
39 <Frame x:Name="frame" NavigationUIVisibility="Hidden" Panel.ZIndex="1" Content="{Binding Path=FrameSource}"/>
40 </DockPanel>
41 </Grid>
42 </Window>