diff --git a/demo/Ursa.Demo/Pages/PathPickerDemo.axaml b/demo/Ursa.Demo/Pages/PathPickerDemo.axaml index b244907..933a7b3 100644 --- a/demo/Ursa.Demo/Pages/PathPickerDemo.axaml +++ b/demo/Ursa.Demo/Pages/PathPickerDemo.axaml @@ -13,7 +13,7 @@ + Content="PathPicker aggregates a file selector and provides a Command property. The Command is triggered solely after opening the file selector and selecting a file, whereupon the Command receives an IReadOnlyList<string> parameter."> @@ -24,7 +24,7 @@ Watermark="D:\Win7 Help\win-x64"> + Watermark="[Name,Pattern] like this [123,*.exe,*.pdb] or [All][ImageAll][11,*.txt]"> @@ -46,7 +46,20 @@ DefaultFileExtension="{Binding #DefaultFileExtension.Text}" AllowMultiple="{Binding #AllowMultiple.IsChecked}" UsePickerType="{Binding #UsePickerType.Value}" - SelectedPath="{Binding Path,Mode=OneWayToSource}" + SelectedPathsText="{Binding Path,Mode=OneWayToSource}" + SelectedPaths="{Binding Paths,Mode=OneWayToSource}"> + + + + @@ -59,11 +72,11 @@ DefaultFileExtension="{Binding #DefaultFileExtension.Text}" AllowMultiple="{Binding #AllowMultiple.IsChecked}" UsePickerType="{Binding #UsePickerType.Value}" - SelectedPath="{Binding Path,Mode=OneWayToSource}" + SelectedPathsText="{Binding Path,Mode=OneWayToSource}" SelectedPaths="{Binding Paths,Mode=OneWayToSource}"> - + @@ -80,7 +93,7 @@ - + diff --git a/src/Ursa.Themes.Semi/Controls/PathPicker.axaml b/src/Ursa.Themes.Semi/Controls/PathPicker.axaml index 07a243a..5ff8c86 100644 --- a/src/Ursa.Themes.Semi/Controls/PathPicker.axaml +++ b/src/Ursa.Themes.Semi/Controls/PathPicker.axaml @@ -9,31 +9,50 @@ + Text="{TemplateBinding SelectedPathsText,Mode=TwoWay}"> + + + + + + + + + + + + + - +