KEINE AAAAAAAAAAAAAAAAAAAAHNUNG

This commit is contained in:
Taarly 2025-04-10 14:08:41 +02:00
parent 05ce728316
commit 7c5e88071f
4 changed files with 140 additions and 121 deletions

View File

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

View File

@ -1,6 +1,6 @@
<UserControl <UserControl
xmlns="https://github.com/avaloniaui"
x:Class="Project.View.MenuView" x:Class="Project.View.MenuView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid> <Grid>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
@ -8,37 +8,100 @@
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<ScrollViewer Margin="0, 0, 0, 40" Grid.Column="0" VerticalScrollBarVisibility="Auto"> <ScrollViewer
Grid.Column="0"
Margin="0,0,0,40"
VerticalScrollBarVisibility="Auto">
<StackPanel> <StackPanel>
<Button Name="btn1" Width="200" Background="Pink" BorderBrush="Black" BorderThickness="1">BeispielButton</Button> <Button
<Button Name="btn2" Width="200" Background="Pink" BorderBrush="Black" BorderThickness="1">BeispielButton2</Button> Background="Pink"
BorderBrush="Black"
BorderThickness="1"
Name="btn1"
Width="200">
BeispielButton
</Button>
<Button
Background="Pink"
BorderBrush="Black"
BorderThickness="1"
Name="btn2"
Width="200">
BeispielButton2
</Button>
</StackPanel> </StackPanel>
</ScrollViewer> </ScrollViewer>
<Button Name="NewEntry" VerticalAlignment="Bottom" HorizontalAlignment="Left" Content="+"/> <Button
Click="NewEntryButton_OnClick"
Content="+"
HorizontalAlignment="Left"
Name="NewEntryButton"
VerticalAlignment="Bottom" />
<Border Grid.Column="1" Background="RosyBrown"> <Border Background="RosyBrown" Grid.Column="1">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<StackPanel Orientation="Vertical" Margin="20,20,100,20"> <StackPanel Margin="20,20,100,20" Orientation="Vertical">
<TextBlock Margin="23" Text="Name:" HorizontalAlignment="Left" FontSize="20"/> <TextBlock
<TextBlock Margin="23" Text="URL:" HorizontalAlignment="Left" FontSize="20"/> FontSize="20"
<TextBlock Margin="23" Text="Password:" HorizontalAlignment="Left" FontSize="20"/> HorizontalAlignment="Left"
<TextBlock Margin="23" Text="Note:" HorizontalAlignment="Left" FontSize="20"/> Margin="23"
Text="Name:" />
<TextBlock
FontSize="20"
HorizontalAlignment="Left"
Margin="23"
Text="URL:" />
<TextBlock
FontSize="20"
HorizontalAlignment="Left"
Margin="23"
Text="Password:" />
<TextBlock
FontSize="20"
HorizontalAlignment="Left"
Margin="23"
Text="Note:" />
</StackPanel> </StackPanel>
<StackPanel Orientation="Vertical" Margin="20,20,20,20"> <StackPanel Margin="20,20,20,20" Orientation="Vertical">
<TextBox Margin="20" Text="THE NAME OF YOUR SAVED LOGIN" Height="30" TextWrapping="Wrap"/> <TextBox
<TextBox Margin="20" Text="THE URL TO YOUR PAGE" Height="30" TextWrapping="Wrap"/> Height="30"
Margin="20"
Text="THE NAME OF YOUR SAVED LOGIN"
TextWrapping="Wrap" />
<TextBox
Height="30"
Margin="20"
Text="THE URL TO YOUR PAGE"
TextWrapping="Wrap" />
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<TextBox Margin="20" Text="PASSWORT" Height="30" TextWrapping="Wrap" PasswordChar="*"/> <TextBox
<Button Name="copyPassword" BorderBrush="Black" BorderThickness="1" Content="X"/> Height="30"
<Button Name="showPassword" BorderBrush="Black" BorderThickness="1" Content="X"/> Margin="20"
PasswordChar="*"
Text="PASSWORT"
TextWrapping="Wrap" />
<Button
BorderBrush="Black"
BorderThickness="1"
Content="X"
Name="copyPassword" />
<Button
BorderBrush="Black"
BorderThickness="1"
Content="X"
Name="showPassword" />
</StackPanel> </StackPanel>
<TextBox Margin="20" Height="150" Text="YOUR NOTES" TextWrapping="Wrap"/> <TextBox
Height="150"
Margin="20"
Text="YOUR NOTES"
TextWrapping="Wrap" />
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Border> </Border>
</Grid> </Grid>

View File

@ -19,8 +19,10 @@ public partial class MenuView : UserControl
_controller = controller; _controller = controller;
} }
private void Button_Click(object? sender, RoutedEventArgs e)
private void NewEntryButton_OnClick(object? sender, RoutedEventArgs e)
{ {
((Button)sender).Background = Brushes.Blue; var newEntry = new NewEntry(_controller);
NewEntry.Show(newEntry);
} }
} }

View File

@ -3,101 +3,55 @@
xmlns="https://github.com/avaloniaui" xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid> <Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ScrollViewer <Border Background="SaddleBrown">
Grid.Column="0"
Margin="0,0,0,40"
VerticalScrollBarVisibility="Auto">
<StackPanel> <StackPanel Orientation="Vertical">
<Button
Background="Pink"
BorderBrush="Black"
BorderThickness="1"
Name="btn1"
Width="200">
BeispielButton
</Button>
<Button
Background="Pink"
BorderBrush="Black"
BorderThickness="1"
Name="btn2"
Width="200">
BeispielButton2
</Button>
</StackPanel>
</ScrollViewer>
<Button
Content="+"
HorizontalAlignment="Left"
Name="NewEntry"
VerticalAlignment="Bottom" />
<Border Background="RosyBrown" Grid.Column="1">
<StackPanel Orientation="Horizontal">
<StackPanel Margin="20,20,100,20" Orientation="Vertical">
<TextBlock <TextBlock
FontSize="20" FontSize="20"
HorizontalAlignment="Left" HorizontalAlignment="Left"
Margin="23"
Text="Name:" /> Text="Name:" />
<TextBox TextWrapping="Wrap" Watermark="Name:" />
<TextBlock <TextBlock
FontSize="20" FontSize="20"
HorizontalAlignment="Left" HorizontalAlignment="Left"
Margin="23" Text="Username:" />
Text="URL:" /> <TextBox TextWrapping="Wrap" Watermark="Username" />
<TextBlock <TextBlock
FontSize="20" FontSize="20"
HorizontalAlignment="Left" HorizontalAlignment="Left"
Margin="23" Margin="23"
Text="Password:" /> Text="Password:" />
<StackPanel Orientation="Horizontal">
<TextBox TextWrapping="Wrap" Watermark="Password" />
<Button
BorderBrush="Black"
BorderThickness="1"
Content="X"
Name="newentry_generate_password" />
<Button
BorderBrush="Black"
BorderThickness="1"
Content="X"
Name="newentry_show_password" />
</StackPanel>
<TextBlock <TextBlock
FontSize="20" FontSize="20"
HorizontalAlignment="Left" HorizontalAlignment="Left"
Margin="23"
Text="Note:" /> Text="Note:" />
</StackPanel> <TextBox TextWrapping="Wrap" Watermark="Note" />
<StackPanel Margin="20,20,20,20" Orientation="Vertical">
<TextBox
Height="30"
Margin="20"
Text="THE NAME OF YOUR SAVED LOGIN"
TextWrapping="Wrap" />
<TextBox
Height="30"
Margin="20"
Text="THE URL TO YOUR PAGE"
TextWrapping="Wrap" />
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<TextBox
Height="30"
Margin="20"
PasswordChar="*"
Text="PASSWORT"
TextWrapping="Wrap" />
<Button <Button
BorderBrush="Black" BorderBrush="Black"
BorderThickness="1" BorderThickness="1"
Content="X" Content="X"
Name="copyPassword" /> Name="newentry_save_button" />
<Button <Button
BorderBrush="Black" BorderBrush="Black"
BorderThickness="1" BorderThickness="1"
Content="X" Content="X"
Name="showPassword" /> Name="newentry_cancel_button" />
</StackPanel>
<TextBox
Height="150"
Margin="20"
Text="YOUR NOTES"
TextWrapping="Wrap" />
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Border> </Border>