more work on the view

This commit is contained in:
Taarly 2025-04-08 09:31:41 +02:00
parent f526610b86
commit e8ab2980ec
3 changed files with 26 additions and 9 deletions

View File

@ -1,17 +1,16 @@
<UserControl
xmlns="https://github.com/avaloniaui"
x:Class="Project.View.LoginPage"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid Background="SandyBrown">
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Image Source="avares://Project.View/Images/keywi_logo_2.png" Height="400" Width="400"/>
</StackPanel>
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock>Your Login Name:</TextBlock>
<TextBox Watermark="Login-Name" TextWrapping="NoWrap"/>
<TextBox Watermark="Login-Name" TextWrapping="Wrap"/>
<TextBlock>Password:</TextBlock>
<TextBox Watermark="Password" TextWrapping="NoWrap" PasswordChar="*"/>
<TextBox Watermark="Password" TextWrapping="Wrap" PasswordChar="*"/>
<Button Name="ConfirmButton" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Center" Margin="20"> LOGIN </Button>
</StackPanel>

View File

@ -11,6 +11,6 @@ public partial class MainWindow : Window
{
InitializeComponent();
_controller = new();
MainGrid.Children.Add(new LoginPage());
MainGrid.Children.Add(new MenuView());
}
}

View File

@ -8,16 +8,34 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ScrollViewer Grid.Column="0" VerticalScrollBarVisibility="Auto">
<ScrollViewer Margin="0, 0, 0, 40" Grid.Column="0" VerticalScrollBarVisibility="Auto">
<StackPanel>
<Button Name="btn1" Width="200" Background="Pink" BorderBrush="Black" BorderThickness="1">BeispielButton</Button>
<Button Name="btn2" Width="200" Background="Pink" BorderBrush="Black" BorderThickness="1">BeispielButton2</Button>
</StackPanel>
</ScrollViewer>
<Button Name="NewEntry" VerticalAlignment="Bottom" HorizontalAlignment="Left" Content="+"/>
<Border Grid.Column="1" Background="RosyBrown">
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Vertical" Margin="20,20,100,20">
<TextBlock Margin="23" Text="Name:" HorizontalAlignment="Left" FontSize="20"/>
<TextBlock Margin="23" Text="URL:" HorizontalAlignment="Left" FontSize="20"/>
<TextBlock Margin="23" Text="Password:" HorizontalAlignment="Left" FontSize="20"/>
<TextBlock Margin="23" Text="Note:" HorizontalAlignment="Left" FontSize="20"/>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="20,20,20,20">
<TextBox Margin="20" Text="THE NAME OF YOUR SAVED LOGIN" Height="30" TextWrapping="Wrap"/>
<TextBox Margin="20" Text="THE URL TO YOUR PAGE" Height="30" TextWrapping="Wrap"/>
<TextBox Margin="20" Text="PASSWORT" Height="30" TextWrapping="Wrap" PasswordChar="*"/>
<TextBox Margin="20" Height="150" Text="YOUR NOTES" TextWrapping="Wrap"/>
</StackPanel>
</StackPanel>
</Border>
<Border Grid.Column="1" Background="RosyBrown">
<TextBlock Text="Hauptinhalt" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24"/>
</Border>
</Grid>