111 lines
4.0 KiB
XML
111 lines
4.0 KiB
XML
<UserControl
|
|
x:Class="Project.View.MenuView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Height="400"
|
|
Width="800">
|
|
|
|
<UserControl.Styles>
|
|
<Style Selector="TextBlock">
|
|
<Setter Property="FontSize" Value="16" />
|
|
<Setter Property="Foreground" Value= "Gray" />
|
|
<Setter Property="Margin" Value="0,5" />
|
|
<Setter Property="Padding" Value="0,8"/>
|
|
</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="25" />
|
|
<Setter Property="Height" Value="25" />
|
|
<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="Yellow"
|
|
Content="↻"
|
|
CornerRadius="22"
|
|
FontSize="24"
|
|
Foreground="White"
|
|
Height="35"
|
|
HorizontalAlignment="Left"
|
|
IsEnabled="True"
|
|
Margin="0,0,-50,20"
|
|
VerticalAlignment="Bottom"
|
|
Width="35"
|
|
x:Name="RefreshButton"
|
|
Click="RefreshButton_OnClick"/>
|
|
<Button
|
|
Background="Red"
|
|
Content="-"
|
|
CornerRadius="22"
|
|
FontSize="24"
|
|
Foreground="White"
|
|
Height="35"
|
|
HorizontalAlignment="Center"
|
|
IsEnabled="False"
|
|
Margin="0,0,-50,20"
|
|
VerticalAlignment="Bottom"
|
|
Width="35"
|
|
x:Name="DeleteButton" />
|
|
<Button
|
|
Background="#4CAF50"
|
|
Click="NewEntryButton_OnClick"
|
|
Content="+"
|
|
CornerRadius="22"
|
|
FontSize="24"
|
|
Foreground="White"
|
|
Height="35"
|
|
HorizontalAlignment="Right"
|
|
Margin="0,0,20,20"
|
|
VerticalAlignment="Bottom"
|
|
Width="35"
|
|
x:Name="NewEntryButton" />
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Right column -->
|
|
<Border Background="White" Grid.Column="1">
|
|
<StackPanel Margin="40">
|
|
|
|
<Grid ColumnDefinitions="150,*">
|
|
<!-- Labels -->
|
|
<StackPanel Grid.Column="0" x:Name="ShowEntryDetailsL">
|
|
|
|
</StackPanel>
|
|
|
|
<!-- entry fields -->
|
|
<StackPanel Grid.Column="1" x:Name="ShowEntryDetailsR">
|
|
<Image
|
|
Height="300"
|
|
Margin="0,0,0,0"
|
|
Source="avares://Project.View/Images/keywi_logo_2.png"
|
|
Width="300" />
|
|
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl> |