created new window for a new entry to the database
This commit is contained in:
parent
9a7a21f2f1
commit
05ce728316
108
Project.View/NewEntry/NewEntry.axaml
Normal file
108
Project.View/NewEntry/NewEntry.axaml
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
<UserControl
|
||||||
|
x:Class="Project.View.NewEntry"
|
||||||
|
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">
|
||||||
|
|
||||||
|
<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">
|
||||||
|
<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 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
|
||||||
|
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
|
||||||
|
Height="150"
|
||||||
|
Margin="20"
|
||||||
|
Text="YOUR NOTES"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
</UserControl>
|
||||||
21
Project.View/NewEntry/NewEntry.axaml.cs
Normal file
21
Project.View/NewEntry/NewEntry.axaml.cs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
using Avalonia.Controls;
|
||||||
|
using Avalonia.Interactivity;
|
||||||
|
using Avalonia.Media;
|
||||||
|
using Project.Controller;
|
||||||
|
|
||||||
|
namespace Project.View;
|
||||||
|
|
||||||
|
public partial class NewEntry : UserControl
|
||||||
|
{
|
||||||
|
readonly AppController? _controller;
|
||||||
|
public NewEntry()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public NewEntry(AppController controller)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
_controller = controller;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user