253 lines
12 KiB
XML
253 lines
12 KiB
XML
<Window x:Class="Valheim_Mod_Sync_Desktop.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:Valheim_Mod_Sync_Desktop"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
TextElement.FontWeight="Medium"
|
|
TextElement.FontSize="14"
|
|
FontFamily="{materialDesign:MaterialDesignFont}"
|
|
mc:Ignorable="d"
|
|
Title="Valheim Mod Sync" MinHeight="450" Height="450" MinWidth="800" Width="800" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen" Icon="/files/tbs.ico"
|
|
>
|
|
<materialDesign:DrawerHost x:Name="DrawerHostMain"
|
|
IsLeftDrawerOpen="{Binding ElementName=MenuToggleButton, Path=IsChecked }" BottomDrawerBackground="{x:Null}"
|
|
>
|
|
<materialDesign:DrawerHost.LeftDrawerContent>
|
|
<StackPanel MinWidth="220" Background="{DynamicResource BackgroundHeader}">
|
|
<ToggleButton
|
|
Style="{StaticResource MaterialDesignHamburgerToggleButton}"
|
|
x:Name="Test123"
|
|
DockPanel.Dock="Top"
|
|
HorizontalAlignment="Right"
|
|
Margin="16"
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
IsChecked="{Binding ElementName=MenuToggleButton, Path=IsChecked, Mode=TwoWay}"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Left}"
|
|
/>
|
|
|
|
<TextBlock
|
|
Margin="8 0 0 0"
|
|
Text="{DynamicResource Theme}"
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
TextDecorations="Underline"
|
|
FontWeight="Bold"
|
|
/>
|
|
|
|
<ComboBox
|
|
x:Name="Theme"
|
|
Style="{StaticResource MaterialDesignFilledComboBox}"
|
|
BorderThickness="0"
|
|
Width="200"
|
|
Height="50"
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
BorderBrush="{DynamicResource HeaderTextColor}"
|
|
Background="{DynamicResource BackgroundGrid}"
|
|
SelectionChanged="theme_SelectionChanged"
|
|
>
|
|
<ComboBoxItem>Light</ComboBoxItem>
|
|
<ComboBoxItem>Dark</ComboBoxItem>
|
|
</ComboBox>
|
|
|
|
<TextBlock
|
|
Margin="8 8 0 0"
|
|
Text="{DynamicResource Server}"
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
TextDecorations="Underline"
|
|
FontWeight="Bold"
|
|
/>
|
|
|
|
<TextBox
|
|
x:Name="Server"
|
|
Margin="0 10 0 0"
|
|
BorderThickness="0"
|
|
VerticalContentAlignment="Center"
|
|
Padding="10 0 10 0"
|
|
Width="200"
|
|
Height="40"
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
BorderBrush="{DynamicResource HeaderTextColor}"
|
|
Background="{DynamicResource BackgroundGrid}"
|
|
TextChanged="Server_TextChanged"
|
|
CaretBrush="{DynamicResource HeaderTextColor}"
|
|
Cursor="Arrow"
|
|
/>
|
|
|
|
<TextBlock
|
|
Margin="8 8 0 0"
|
|
Text="{DynamicResource Sprache}"
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
TextDecorations="Underline"
|
|
FontWeight="Bold"
|
|
/>
|
|
|
|
<ComboBox
|
|
x:Name="Sprache"
|
|
Style="{StaticResource MaterialDesignFilledComboBox}"
|
|
BorderThickness="0"
|
|
Width="200"
|
|
Height="50"
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
BorderBrush="{DynamicResource HeaderTextColor}"
|
|
Background="{DynamicResource BackgroundGrid}"
|
|
SelectionChanged="Sprache_SelectionChanged"
|
|
>
|
|
<ComboBoxItem>German</ComboBoxItem>
|
|
<ComboBoxItem>English</ComboBoxItem>
|
|
</ComboBox>
|
|
<TextBlock
|
|
Margin="8 8 0 0"
|
|
Text="Valheim Autostart:"
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
TextDecorations="Underline"
|
|
FontWeight="Bold"
|
|
/>
|
|
|
|
<CheckBox
|
|
x:Name="Autostart"
|
|
Style="{StaticResource MaterialDesignCheckBox}"
|
|
Margin="190 -15 0 0"
|
|
Background="{DynamicResource HeaderTextColor}"
|
|
Click="Autostart_Click"
|
|
/>
|
|
|
|
<TextBlock
|
|
Margin="8 8 0 0"
|
|
Text="{DynamicResource StartMenuVerknuepfung}"
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
TextDecorations="Underline"
|
|
FontWeight="Bold"
|
|
/>
|
|
|
|
<CheckBox
|
|
x:Name="StartmenueVerknuepfung"
|
|
Style="{StaticResource MaterialDesignCheckBox}"
|
|
Margin="190 -15 0 0"
|
|
Background="{DynamicResource HeaderTextColor}"
|
|
Click="StartmenueVerknuepfung_Click"
|
|
/>
|
|
|
|
<Button
|
|
x:Name="Kontakt"
|
|
Content="{DynamicResource Kontakt}"
|
|
Click="KontaktButton_Click"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,35,0,0"
|
|
VerticalAlignment="Top"
|
|
Background="{DynamicResource ButtonBackgroundColor}"
|
|
BorderBrush="{DynamicResource ButtonBackgroundColor}"
|
|
Foreground="{DynamicResource ButtonTextColor}" Cursor="Hand"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Left}"
|
|
/>
|
|
|
|
<Button
|
|
x:Name="Lizenz_Deaktivieren"
|
|
Content="{DynamicResource Lizenz_Deaktivieren}"
|
|
Click="Lizenz_Deaktivieren_Click"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,5,0,0"
|
|
VerticalAlignment="Top"
|
|
Background="{DynamicResource ButtonBackgroundColor}"
|
|
BorderBrush="{DynamicResource ButtonBackgroundColor}"
|
|
Foreground="{DynamicResource ButtonTextColor}" Cursor="Hand"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Left}"
|
|
/>
|
|
|
|
</StackPanel>
|
|
</materialDesign:DrawerHost.LeftDrawerContent>
|
|
<Grid>
|
|
|
|
<materialDesign:ColorZone
|
|
x:Name="header"
|
|
Padding="16"
|
|
Background="{DynamicResource BackgroundHeader}"
|
|
MouseLeftButtonDown="header_MouseLeftButtonDown"
|
|
>
|
|
<StackPanel
|
|
Orientation="Horizontal"
|
|
>
|
|
|
|
|
|
|
|
<ToggleButton
|
|
x:Name="MenuToggleButton"
|
|
Style="{DynamicResource MaterialDesignHamburgerToggleButton}"
|
|
Foreground="{DynamicResource MenuToggleButtonColor}"
|
|
Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Left}"
|
|
/>
|
|
|
|
<Label
|
|
x:Name="Back"
|
|
Content="{materialDesign:PackIcon Kind=ArrowLeft, Size=30}"
|
|
VerticalAlignment="Center"
|
|
MouseLeftButtonDown="Back_MouseLeftButtonDown"
|
|
Foreground="{DynamicResource MenuToggleButtonColor}" Width="37" Height="37"
|
|
Visibility="Collapsed"
|
|
/>
|
|
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
Margin="32 0 0 0"
|
|
Text="Valheim Mod Sync."
|
|
Foreground="{DynamicResource HeaderTextColor}"
|
|
TextDecorations="Underline"
|
|
FontWeight="Bold"
|
|
FontSize="16"
|
|
/>
|
|
|
|
<Label
|
|
x:Name="miniBtn"
|
|
MouseLeftButtonDown="miniBtn_MouseLeftButtonDown"
|
|
Content="{materialDesign:PackIcon Minus}"
|
|
HorizontalAlignment="Left"
|
|
Margin="510,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Foreground="{DynamicResource CloseMinimizeColor}"
|
|
Cursor="Hand"
|
|
/>
|
|
|
|
<Label
|
|
x:Name="exitBtn"
|
|
MouseLeftButtonDown="exitBtn_MouseLeftButtonDown"
|
|
Content="{materialDesign:PackIcon Close}"
|
|
HorizontalAlignment="Left"
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Foreground="{DynamicResource CloseMinimizeColor}"
|
|
Cursor="Hand"
|
|
/>
|
|
</StackPanel>
|
|
</materialDesign:ColorZone>
|
|
<Grid
|
|
Height="25px" Margin="0,0,0,356" Grid.Row="1"
|
|
Background="{DynamicResource BackgroundHeader}"
|
|
x:Name="MenüGrid"
|
|
>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80*" ></ColumnDefinition>
|
|
<ColumnDefinition Width="61*" ></ColumnDefinition>
|
|
<ColumnDefinition Width="19*"/>
|
|
<ColumnDefinition Width="80*" ></ColumnDefinition>
|
|
<ColumnDefinition Width="80*" ></ColumnDefinition>
|
|
<ColumnDefinition Width="80*" ></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Grid.Column="0" x:Name="Sync_Menu" Click="Sync_Menu_Click" Background="Transparent" BorderBrush="Transparent" Margin="0,0,0,-7">Sync</Button>
|
|
<Button Grid.Column="1" x:Name="Mods_View" Click="Mods_View_Click" Background="Transparent" BorderBrush="Transparent" Height="32" VerticalAlignment="Top" Grid.ColumnSpan="2">Mods</Button>
|
|
<Button Grid.Column="4" x:Name="Lizenzen_View" Click="Lizenzen_View_Click" Background="Transparent" BorderBrush="Transparent" Height="32" VerticalAlignment="Top">Lizenzen</Button>
|
|
<Button Grid.Column="5" x:Name="Einstellungen_View" Click="Einstellungen_View_Click" Background="Transparent" BorderBrush="Transparent" Margin="0,0,0,-7">Einstellungen</Button>
|
|
|
|
</Grid>
|
|
<ContentControl x:Name="contentControl" Content="{Binding SelectedViewModel}" Grid.Row="1" Margin="0,25,0,0"/>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
</Grid>
|
|
</materialDesign:DrawerHost>
|
|
</Window>
|