DialogsPage.xaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <UserControl x:Class="ControlCatalog.Pages.DialogsPage"
  2. xmlns="https://github.com/avaloniaui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  4. <StackPanel Margin="4"
  5. Orientation="Vertical"
  6. Spacing="4">
  7. <TextBlock Text="Windows:" />
  8. <Expander Header="Window dialogs">
  9. <StackPanel Spacing="4">
  10. <Button Name="DecoratedWindow">Decorated _window</Button>
  11. <Button Name="DecoratedWindowDialog">Decorated w_indow (dialog)</Button>
  12. <Button Name="Dialog" ToolTip.Tip="Shows a dialog">_Dialog</Button>
  13. <Button Name="DialogNoTaskbar">Dialog (_No taskbar icon)</Button>
  14. <Button Name="OwnedWindow">Own_ed window</Button>
  15. <Button Name="OwnedWindowNoTaskbar">Owned window (No tas_kbar icon)</Button>
  16. </StackPanel>
  17. </Expander>
  18. <TextBlock Margin="0,20,0,0" Text="Pickers:" />
  19. <CheckBox Name="UseFilters">Use filters</CheckBox>
  20. <Expander Header="FilePicker API">
  21. <StackPanel Spacing="4">
  22. <CheckBox Name="ForceManaged">Force managed dialog</CheckBox>
  23. <CheckBox Name="OpenMultiple">Open multiple</CheckBox>
  24. <Button Name="OpenFolderPicker">Select Fo_lder</Button>
  25. <Button Name="OpenFilePicker">_Open File</Button>
  26. <Button Name="SaveFilePicker">_Save File</Button>
  27. <Button Name="OpenFileFromBookmark">Open File Bookmark</Button>
  28. <Button Name="OpenFolderFromBookmark">Open Folder Bookmark</Button>
  29. </StackPanel>
  30. </Expander>
  31. <Expander Header="Legacy OpenFileDialog">
  32. <StackPanel Spacing="4">
  33. <Button Name="OpenFile">_Open File</Button>
  34. <Button Name="OpenMultipleFiles">Open _Multiple File</Button>
  35. <Button Name="SaveFile">_Save File</Button>
  36. <Button Name="SelectFolder">Select Fo_lder</Button>
  37. <Button Name="OpenBoth">Select _Both</Button>
  38. </StackPanel>
  39. </Expander>
  40. <TextBlock x:Name="PickerLastResultsVisible"
  41. Classes="h2"
  42. IsVisible="False"
  43. Text="Last picker results:" />
  44. <ItemsPresenter x:Name="PickerLastResults" />
  45. <TextBox Name="BookmarkContainer" Watermark="Bookmark" />
  46. <TextBox Name="OpenedFileContent"
  47. MaxLines="10"
  48. Watermark="Picked file content" />
  49. </StackPanel>
  50. </UserControl>