diff --git a/samples/ControlCatalog/Pages/DialogsPage.xaml b/samples/ControlCatalog/Pages/DialogsPage.xaml index 0497fe9c3b..a910962dde 100644 --- a/samples/ControlCatalog/Pages/DialogsPage.xaml +++ b/samples/ControlCatalog/Pages/DialogsPage.xaml @@ -2,16 +2,31 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="ControlCatalog.Pages.DialogsPage"> + + Use filters + + + + + + + diff --git a/samples/ControlCatalog/Pages/DialogsPage.xaml.cs b/samples/ControlCatalog/Pages/DialogsPage.xaml.cs index 49921fb7f6..e96b7aff08 100644 --- a/samples/ControlCatalog/Pages/DialogsPage.xaml.cs +++ b/samples/ControlCatalog/Pages/DialogsPage.xaml.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; using Avalonia.Controls; +using Avalonia.Controls.Presenters; using Avalonia.Dialogs; using Avalonia.Layout; using Avalonia.Markup.Xaml; @@ -16,6 +17,11 @@ namespace ControlCatalog.Pages { this.InitializeComponent(); + var results = this.FindControl("PickerLastResults"); + var resultsVisible = this.FindControl("PickerLastResultsVisible"); + + string lastSelectedDirectory = null; + List GetFilters() { if (this.FindControl("UseFilters").IsChecked != true) @@ -34,44 +40,67 @@ namespace ControlCatalog.Pages }; } - this.FindControl