KEINE AAAAAAAAAAAAAAAAAAAAHNUNG
This commit is contained in:
parent
05ce728316
commit
7c5e88071f
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,44 +1,107 @@
|
|||||||
<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>
|
||||||
<ColumnDefinition Width="200" />
|
<ColumnDefinition Width="200" />
|
||||||
<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>
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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
|
<TextBlock
|
||||||
Background="Pink"
|
FontSize="20"
|
||||||
BorderBrush="Black"
|
HorizontalAlignment="Left"
|
||||||
BorderThickness="1"
|
Text="Name:" />
|
||||||
Name="btn1"
|
<TextBox TextWrapping="Wrap" Watermark="Name:" />
|
||||||
Width="200">
|
<TextBlock
|
||||||
BeispielButton
|
FontSize="20"
|
||||||
</Button>
|
HorizontalAlignment="Left"
|
||||||
<Button
|
Text="Username:" />
|
||||||
Background="Pink"
|
<TextBox TextWrapping="Wrap" Watermark="Username" />
|
||||||
BorderBrush="Black"
|
<TextBlock
|
||||||
BorderThickness="1"
|
FontSize="20"
|
||||||
Name="btn2"
|
HorizontalAlignment="Left"
|
||||||
Width="200">
|
Margin="23"
|
||||||
BeispielButton2
|
Text="Password:" />
|
||||||
</Button>
|
<StackPanel Orientation="Horizontal">
|
||||||
</StackPanel>
|
|
||||||
</ScrollViewer>
|
|
||||||
<Button
|
|
||||||
Content="+"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
Name="NewEntry"
|
|
||||||
VerticalAlignment="Bottom" />
|
|
||||||
|
|
||||||
<Border Background="RosyBrown" Grid.Column="1">
|
<TextBox TextWrapping="Wrap" Watermark="Password" />
|
||||||
<StackPanel Orientation="Horizontal">
|
<Button
|
||||||
|
BorderBrush="Black"
|
||||||
<StackPanel Margin="20,20,100,20" Orientation="Vertical">
|
BorderThickness="1"
|
||||||
<TextBlock
|
Content="X"
|
||||||
FontSize="20"
|
Name="newentry_generate_password" />
|
||||||
HorizontalAlignment="Left"
|
<Button
|
||||||
Margin="23"
|
BorderBrush="Black"
|
||||||
Text="Name:" />
|
BorderThickness="1"
|
||||||
<TextBlock
|
Content="X"
|
||||||
FontSize="20"
|
Name="newentry_show_password" />
|
||||||
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>
|
||||||
|
<TextBlock
|
||||||
<StackPanel Margin="20,20,20,20" Orientation="Vertical">
|
FontSize="20"
|
||||||
<TextBox
|
HorizontalAlignment="Left"
|
||||||
Height="30"
|
Text="Note:" />
|
||||||
Margin="20"
|
<TextBox TextWrapping="Wrap" Watermark="Note" />
|
||||||
Text="THE NAME OF YOUR SAVED LOGIN"
|
<StackPanel Orientation="Horizontal">
|
||||||
TextWrapping="Wrap" />
|
<Button
|
||||||
<TextBox
|
BorderBrush="Black"
|
||||||
Height="30"
|
BorderThickness="1"
|
||||||
Margin="20"
|
Content="X"
|
||||||
Text="THE URL TO YOUR PAGE"
|
Name="newentry_save_button" />
|
||||||
TextWrapping="Wrap" />
|
<Button
|
||||||
<StackPanel Orientation="Horizontal">
|
BorderBrush="Black"
|
||||||
<TextBox
|
BorderThickness="1"
|
||||||
Height="30"
|
Content="X"
|
||||||
Margin="20"
|
Name="newentry_cancel_button" />
|
||||||
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
|
|
||||||
Height="150"
|
|
||||||
Margin="20"
|
|
||||||
Text="YOUR NOTES"
|
|
||||||
TextWrapping="Wrap" />
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user