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();
_controller = new();
MainGrid.Children.Add(new LoginPage());
MainGrid.Children.Add(new MenuView());
}
}

View File

@ -1,6 +1,6 @@
<UserControl
xmlns="https://github.com/avaloniaui"
x:Class="Project.View.MenuView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<Grid.ColumnDefinitions>
@ -8,34 +8,97 @@
<ColumnDefinition Width="*" />
</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>
<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>
<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 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="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 Margin="20,20,100,20" Orientation="Vertical">
<TextBlock
FontSize="20"
HorizontalAlignment="Left"
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 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"/>
<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">
<TextBox Margin="20" Text="PASSWORT" Height="30" TextWrapping="Wrap" PasswordChar="*"/>
<Button Name="copyPassword" BorderBrush="Black" BorderThickness="1" Content="X"/>
<Button Name="showPassword" BorderBrush="Black" BorderThickness="1" Content="X"/>
<TextBox
Height="30"
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>
<TextBox Margin="20" Height="150" Text="YOUR NOTES" TextWrapping="Wrap"/>
<TextBox
Height="150"
Margin="20"
Text="YOUR NOTES"
TextWrapping="Wrap" />
</StackPanel>
</StackPanel>
</Border>

View File

@ -19,8 +19,10 @@ public partial class MenuView : UserControl
_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:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ScrollViewer
Grid.Column="0"
Margin="0,0,0,40"
VerticalScrollBarVisibility="Auto">
<Border Background="SaddleBrown">
<StackPanel>
<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">
<StackPanel Orientation="Vertical">
<TextBlock
FontSize="20"
HorizontalAlignment="Left"
Margin="23"
Text="Name:" />
<TextBox TextWrapping="Wrap" Watermark="Name:" />
<TextBlock
FontSize="20"
HorizontalAlignment="Left"
Margin="23"
Text="URL:" />
Text="Username:" />
<TextBox TextWrapping="Wrap" Watermark="Username" />
<TextBlock
FontSize="20"
HorizontalAlignment="Left"
Margin="23"
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
FontSize="20"
HorizontalAlignment="Left"
Margin="23"
Text="Note:" />
</StackPanel>
<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" />
<TextBox TextWrapping="Wrap" Watermark="Note" />
<StackPanel Orientation="Horizontal">
<TextBox
Height="30"
Margin="20"
PasswordChar="*"
Text="PASSWORT"
TextWrapping="Wrap" />
<Button
BorderBrush="Black"
BorderThickness="1"
Content="X"
Name="copyPassword" />
Name="newentry_save_button" />
<Button
BorderBrush="Black"
BorderThickness="1"
Content="X"
Name="showPassword" />
</StackPanel>
<TextBox
Height="150"
Margin="20"
Text="YOUR NOTES"
TextWrapping="Wrap" />
Name="newentry_cancel_button" />
</StackPanel>
</StackPanel>
</Border>