Commit | Line | Data |
---|---|---|
d667d1cd S |
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" | |
491f6e3b S |
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 | ||
3fcd2f96 | 24 | <Button Command="{Binding Path=SwitchToLoginPage}" Background="{Binding Path=ButtonLoginPageBackground}" x:Name="btnLogin" Content="{Binding Path=LoginButtonContent}"/> |
c60797cb S |
25 | <Button Command="{Binding Path=SwitchToStatusPage}" Background="{Binding Path=ButtonStatusPageBackground}" Click="button_click" x:Name="btnStatus" Content="Status"/> |
26 | <Button Command="{Binding Path=SwitchToOverviewPage}" IsEnabled="{Binding Path=ButtonOverviewPageIsActive}" Background="{Binding Path=ButtonOverviewPageBackground}" x:Name="btnOverview" Content="Overview"/> | |
27 | <Button Command="{Binding Path=SwitchToDSLPage}" IsEnabled="{Binding Path=ButtonDSLPageIsActive}" Background="{Binding Path=ButtonDSLPageBackground}" x:Name="btnDsl" Content="DSL"/> | |
28 | <Button Command="{Binding Path=SwitchToLteInfoPage}" IsEnabled="{Binding Path=ButtonLteInfoPageIsActive}" Background="{Binding Path=ButtonLteInfoPageBackground}" x:Name="btnLteInfo" Content="LteInfo"/> | |
29 | <Button Command="{Binding Path=SwitchToSyslogPage}" IsEnabled="{Binding Path=ButtonSyslogPageIsActive}" Background="{Binding Path=ButtonSyslogPageBackground}" x:Name="btnSyslog" Content="Syslog"/> | |
30 | <Button Command="{Binding Path=SwitchToTR181Page}" IsEnabled="{Binding Path=ButtonTR181PageIsActive}" Background="{Binding Path=ButtonTR181PageBackground}" x:Name="btnTR181" Content="TR-181"/> | |
31 | <Button Command="{Binding Path=SwitchToPhonePage}" IsEnabled="{Binding Path=ButtonPhonePageIsActive}" Background="{Binding Path=ButtonPhonePageBackground}" x:Name="btnPhone" Content="Anrufe"/> | |
32 | <Button Command="{Binding Path=SwitchToLanPage}" IsEnabled="{Binding Path=ButtonLanPageIsActive}" Background="{Binding Path=ButtonLanPageBackground}" x:Name="btnLan" Content="Lan"/> | |
33 | <Button Command="{Binding Path=SwitchToControlsPage}" IsEnabled="{Binding Path=ButtonControlsPageIsActive}" Background="{Binding Path=ButtonControlsPageBackground}" x:Name="btnControls" Content="Controls"/> | |
491f6e3b S |
34 | </StackPanel> |
35 | ||
c60797cb | 36 | <Button Command="{Binding Path=SwitchToAboutPage}" Background="{Binding Path=ButtonAboutPageBackground}" x:Name="btnAbout" Content="Über" VerticalAlignment="Top" HorizontalAlignment="Right" Width="32" Margin="0,0,3,0"/> |
491f6e3b S |
37 | |
38 | <DockPanel Margin="0,22,0,0"> | |
39 | <Frame x:Name="frame" NavigationUIVisibility="Hidden" Panel.ZIndex="1" Content="{Binding Path=FrameSource}"/> | |
40 | </DockPanel> | |
d667d1cd S |
41 | </Grid> |
42 | </Window> |