mirror of
https://github.com/KeyKeeperApp/KeyKeeper.git
synced 2026-04-21 15:06:29 +03:00
replace grid with real listbox
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="KeyKeeper.Views.MainWindow"
|
||||
x:DataType="vm:MainWindowViewModel"
|
||||
Background="#fff"
|
||||
Icon="/Assets/icon.ico"
|
||||
Title="KeyKeeper">
|
||||
|
||||
@@ -70,34 +71,23 @@
|
||||
CornerRadius="4"
|
||||
Padding="25">
|
||||
|
||||
<Grid RowDefinitions="Auto,*,*,*,*">
|
||||
|
||||
<TextBlock Text="There is no data yet..."
|
||||
FontSize="20"
|
||||
Foreground="#777"
|
||||
Margin="0,0,0,0"/>
|
||||
|
||||
<Rectangle Grid.Row="1"
|
||||
Height="1"
|
||||
Fill="#D0D0D0"
|
||||
VerticalAlignment="Center"/>
|
||||
|
||||
<Rectangle Grid.Row="2"
|
||||
Height="1"
|
||||
Fill="#D0D0D0"
|
||||
VerticalAlignment="Center"/>
|
||||
|
||||
<Rectangle Grid.Row="3"
|
||||
Height="1"
|
||||
Fill="#D0D0D0"
|
||||
VerticalAlignment="Center"/>
|
||||
|
||||
<Rectangle Grid.Row="4"
|
||||
Height="1"
|
||||
Fill="#D0D0D0"
|
||||
VerticalAlignment="Center"/>
|
||||
|
||||
</Grid>
|
||||
<ListBox x:Name="RecentVaultsList"
|
||||
Background="Transparent"
|
||||
ItemsSource="{Binding RecentFiles}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="m:RecentFile">
|
||||
<TextBlock Text="{Binding DisplayPath}"
|
||||
Foreground="#000"
|
||||
Margin="5"/>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
<ListBox.Styles>
|
||||
<Style Selector="ListBoxItem">
|
||||
<Setter Property="BorderThickness" Value="0,0,0,1"/>
|
||||
<Setter Property="BorderBrush" Value="#D0D0D0"/>
|
||||
</Style>
|
||||
</ListBox.Styles>
|
||||
</ListBox>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user