DatePickerPage.xaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.DatePickerPage">
  4. <StackPanel Orientation="Vertical" Spacing="4">
  5. <TextBlock Classes="h1">DatePicker</TextBlock>
  6. <TextBlock Classes="h2">A control for selecting dates with a calendar drop-down</TextBlock>
  7. <StackPanel Orientation="Horizontal"
  8. Margin="0,16,0,0"
  9. HorizontalAlignment="Center"
  10. Spacing="16">
  11. <StackPanel Orientation="Vertical"
  12. Width="200">
  13. <TextBlock Text="SelectedDateFormat: Short"/>
  14. <DatePicker Name="DatePicker1"
  15. SelectedDateFormat="Short"
  16. Margin="0,0,0,8"/>
  17. <TextBlock Text="SelectedDateFormat: Long"/>
  18. <DatePicker Name="DatePicker2"
  19. SelectedDateFormat="Long"
  20. Margin="0,0,0,8"/>
  21. <TextBlock Text="SelectedDateFormat: Custom"/>
  22. <DatePicker Name="DatePicker3"
  23. SelectedDateFormat="Custom"
  24. CustomDateFormatString="ddd, MMM d"
  25. Margin="0,0,0,8"/>
  26. <TextBlock Text="Blackout Dates"/>
  27. <DatePicker Name="DatePicker4"
  28. Margin="0,0,0,8"/>
  29. <DatePicker Margin="0,0,0,8"
  30. Watermark="Watermark"/>
  31. <DatePicker Margin="0,0,0,8"
  32. Name="DatePicker5"
  33. Watermark="Floating Watermark"
  34. UseFloatingWatermark="True"/>
  35. <TextBlock Text="Disabled"/>
  36. <DatePicker IsEnabled="False"/>
  37. </StackPanel>
  38. </StackPanel>
  39. </StackPanel>
  40. </UserControl>