Initial commit
This commit is contained in:
103
Valheim Dashboard/Views/ServerSettingsView.axaml
Normal file
103
Valheim Dashboard/Views/ServerSettingsView.axaml
Normal file
@@ -0,0 +1,103 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
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:viewModels="clr-namespace:Valheim_Dashboard.ViewModels"
|
||||
mc:Ignorable="d" d:DesignWidth="1280" d:DesignHeight="800"
|
||||
x:Class="Valheim_Dashboard.Views.ServerSettingsView"
|
||||
x:DataType="viewModels:ServerSettingsViewModel">
|
||||
|
||||
<Grid>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
x:Name="ueberschrift"
|
||||
Text="Servereinstellungen"
|
||||
FontSize="36"
|
||||
FontWeight="Bold"
|
||||
HorizontalAlignment="Center"
|
||||
Opacity="100"
|
||||
VerticalAlignment="Top"
|
||||
Margin="0,50,0,0"
|
||||
>
|
||||
<TextBlock.Effect>
|
||||
<DropShadowEffect
|
||||
Color="Gray"
|
||||
BlurRadius="8"
|
||||
OffsetX="4"
|
||||
OffsetY="4"
|
||||
/>
|
||||
</TextBlock.Effect>
|
||||
</TextBlock>
|
||||
|
||||
<Grid Grid.Row="1" Margin="0,50,0,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="9*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="5*"/>
|
||||
<ColumnDefinition Width="5*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Plugin-Einstellungen -->
|
||||
<Expander Header="Plugin" x:Name="Plugin" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Row="0" Grid.Column="0" Margin="50,0,25,0" >
|
||||
<StackPanel Spacing="5" HorizontalAlignment="Center">
|
||||
<TextBlock Text="IP-Adresse:" />
|
||||
<TextBox x:Name="plugin_ip" Text="{Binding PluginIp}" Width="200" />
|
||||
|
||||
<TextBlock Text="Port:" />
|
||||
<TextBox x:Name="plugin_port" Text="{Binding PluginPort}" Width="200" />
|
||||
<Button x:Name="plugin_prüfen" Click="Plugin_prüfen_OnClick" Width="200">Verbindung Prüfen</Button>
|
||||
</StackPanel>
|
||||
</Expander>
|
||||
|
||||
<!-- FTP-Einstellungen -->
|
||||
<Expander Header="FTP" x:Name="FTP" HorizontalAlignment="Stretch" MaxHeight="500" VerticalAlignment="Top" Width="565" Grid.Row="0" Grid.Column="1" Margin="25, 0,50,0" >
|
||||
<ScrollViewer x:Name="ftp_scroll">
|
||||
<StackPanel Spacing="5" HorizontalAlignment="Center">
|
||||
<TextBlock Text="IP-Adresse:" />
|
||||
<TextBox x:Name="ftp_ip" Text="{Binding FtpIp}" Width="200" />
|
||||
|
||||
<TextBlock Text="Port:" />
|
||||
<TextBox x:Name="ftp_port" Text="{Binding FtpPort}" Width="200" />
|
||||
|
||||
<TextBlock Text="Benutzername:" />
|
||||
<TextBox x:Name="ftp_benutzername" Text="{Binding FtpUsername}" Width="200" />
|
||||
|
||||
<TextBlock Text="Passwort:" />
|
||||
<TextBox x:Name="ftp_passwort" Text="{Binding FtpPassword}" Width="200" PasswordChar="*" />
|
||||
<Button x:Name="ftp_prüfen" Click="Ftp_prüfen_OnClick" Width="200">Verbindung Prüfen</Button>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Expander>
|
||||
|
||||
|
||||
<Button
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
x:Name="weiter"
|
||||
Content="Weiter"
|
||||
HorizontalAlignment="Right"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalContentAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
VerticalAlignment="Bottom"
|
||||
Margin="10"
|
||||
Width="100"
|
||||
Height="100"
|
||||
IsVisible="true"
|
||||
Click="Weiter_OnClick">
|
||||
</Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user