Project_Keywi/Project.View/MenuView/MenuView.axaml

115 lines
4.5 KiB
XML

<UserControl
x:Class="Project.View.MenuView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<UserControl.Styles>
<Style Selector="TextBlock">
<Setter Property="FontSize" Value="16" />
<Setter Property="Margin" Value="0,10" />
</Style>
<Style Selector="TextBox">
<Setter Property="Height" Value="35" />
<Setter Property="Margin" Value="0,5,0,10" />
<Setter Property="CornerRadius" Value="4" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
<Style Selector="Button.icon">
<Setter Property="Width" Value="35" />
<Setter Property="Height" Value="35" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="CornerRadius" Value="4" />
<Setter Property="Margin" Value="5,0" />
</Style>
</UserControl.Styles>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="250" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- left column -->
<Border Background="#F5F5F5" BoxShadow="2 0 10 0 #20000000">
<Grid>
<ScrollViewer Margin="0,0,0,60" VerticalScrollBarVisibility="Auto">
<StackPanel Margin="10" x:Name="entriesContainer" />
</ScrollViewer>
<Button
Background="Red"
Content="-"
CornerRadius="22"
FontSize="24"
Foreground="White"
Height="45"
HorizontalAlignment="Center"
IsEnabled="False"
Margin="0,0,-50,20"
VerticalAlignment="Bottom"
Width="45"
x:Name="DeleteButton" />
<Button
Background="#4CAF50"
Click="NewEntryButton_OnClick"
Content="+"
CornerRadius="22"
FontSize="24"
Foreground="White"
Height="45"
HorizontalAlignment="Right"
Margin="0,0,20,20"
VerticalAlignment="Bottom"
Width="45"
x:Name="NewEntryButton" />
</Grid>
</Border>
<!-- Right column -->
<Border Background="White" Grid.Column="1">
<StackPanel Margin="40" x:Name="ShowEntryDetails">
<Grid ColumnDefinitions="150,*">
<!-- Labels -->
<StackPanel Grid.Column="0">
<TextBlock FontWeight="SemiBold" Text="Name:" />
<TextBlock FontWeight="SemiBold" Text="Login-Name:" />
<TextBlock FontWeight="SemiBold" Text="URL:" />
<TextBlock FontWeight="SemiBold" Text="Password:" />
<TextBlock FontWeight="SemiBold" Text="Note:" />
</StackPanel>
<!-- entry fields -->
<StackPanel Grid.Column="1">
<TextBox Text="THE NAME OF YOUR SAVED LOGIN" />
<TextBox Text="YOUR LOGIN NAME ON THIS PAGE" />
<TextBox Text="THE URL TO YOUR PAGE" />
<StackPanel Orientation="Horizontal">
<TextBox
PasswordChar="•"
Text="PASSWORT"
Width="250" />
<Button
Classes="icon"
Content="📋"
ToolTip.Tip="Passwort kopieren"
x:Name="copyPassword" />
<Button
Classes="icon"
Content="👁"
ToolTip.Tip="Passwort anzeigen"
x:Name="showPassword" />
</StackPanel>
<TextBox
AcceptsReturn="True"
Height="150"
Text="YOUR NOTES" />
</StackPanel>
</Grid>
</StackPanel>
</Border>
</Grid>
</UserControl>