Added a small text explaining how to reorder entries

Code cleanup
This commit is contained in:
BONNEVILLE Geoffroy
2017-12-14 17:54:14 +01:00
parent 223c9b641a
commit 10b1f05c55
4 changed files with 9 additions and 15 deletions

View File

@@ -270,6 +270,9 @@
<data name="RecentClear.Text" xml:space="preserve"> <data name="RecentClear.Text" xml:space="preserve">
<value>Clear all</value> <value>Clear all</value>
</data> </data>
<data name="ReorderEntriesLabel.Text" xml:space="preserve">
<value>Drag and drop entries to reorder them</value>
</data>
<data name="SaveAsButton.Content" xml:space="preserve"> <data name="SaveAsButton.Content" xml:space="preserve">
<value>Save as...</value> <value>Save as...</value>
</data> </data>

View File

@@ -270,6 +270,9 @@
<data name="RecentClear.Text" xml:space="preserve"> <data name="RecentClear.Text" xml:space="preserve">
<value>Supprimer tout</value> <value>Supprimer tout</value>
</data> </data>
<data name="ReorderEntriesLabel.Text" xml:space="preserve">
<value>Glissez-déposez les entrées pour les réorganiser</value>
</data>
<data name="SaveAsButton.Content" xml:space="preserve"> <data name="SaveAsButton.Content" xml:space="preserve">
<value>Sauvegarder sous...</value> <value>Sauvegarder sous...</value>
</data> </data>

View File

@@ -79,20 +79,7 @@ namespace ModernKeePass.ViewModels
get { return _isMenuClosed; } get { return _isMenuClosed; }
set { SetProperty(ref _isMenuClosed, value); } set { SetProperty(ref _isMenuClosed, value); }
} }
public string Filter
{
get { return _filter; }
set
{
SetProperty(ref _filter, value);
OnPropertyChanged("EntriesFiltered");
}
}
public ObservableCollection<EntryVm> EntriesFiltered =>
new ObservableCollection<EntryVm>(Entries.Where(e => e.Name.IndexOf(Filter, StringComparison.OrdinalIgnoreCase) >= 0));
public string Path public string Path
{ {
get get

View File

@@ -179,7 +179,7 @@
OtherItem="{StaticResource GroupOtherItem}" /> OtherItem="{StaticResource GroupOtherItem}" />
</ListView.ItemTemplateSelector> </ListView.ItemTemplateSelector>
</ListView> </ListView>
<!-- Horizontal scrolling grid --> <TextBlock Grid.Column="1" x:Uid="ReorderEntriesLabel" Margin="20,20,0,0" Visibility="{Binding IsEditMode, Converter={StaticResource BooleanToVisibilityConverter}}" Style="{StaticResource BodyTextBlockStyle}" />
<HyperlinkButton Grid.Column="1" VerticalAlignment="Top" Margin="40,10,0,0" Click="CreateEntry_ButtonClick" Visibility="{Binding IsSelected, Converter={StaticResource InverseBooleanToVisibilityConverter}}" HorizontalAlignment="Right"> <HyperlinkButton Grid.Column="1" VerticalAlignment="Top" Margin="40,10,0,0" Click="CreateEntry_ButtonClick" Visibility="{Binding IsSelected, Converter={StaticResource InverseBooleanToVisibilityConverter}}" HorizontalAlignment="Right">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<SymbolIcon Symbol="Add"></SymbolIcon> <SymbolIcon Symbol="Add"></SymbolIcon>
@@ -188,6 +188,7 @@
</HyperlinkButton> </HyperlinkButton>
<SemanticZoom Grid.Column="1" ViewChangeStarted="SemanticZoom_ViewChangeStarted" Margin="20,60,0,0"> <SemanticZoom Grid.Column="1" ViewChangeStarted="SemanticZoom_ViewChangeStarted" Margin="20,60,0,0">
<SemanticZoom.ZoomedInView> <SemanticZoom.ZoomedInView>
<!-- Horizontal scrolling grid -->
<GridView <GridView
x:Name="GridView" x:Name="GridView"
AutomationProperties.AutomationId="ItemGridView" AutomationProperties.AutomationId="ItemGridView"