DateTimePickerPage.xaml.cs 1.4 KB

123456789101112131415161718192021222324252627282930
  1. using Avalonia;
  2. using Avalonia.Controls;
  3. using Avalonia.Markup.Xaml;
  4. namespace ControlCatalog.Pages
  5. {
  6. public class DateTimePickerPage : UserControl
  7. {
  8. public DateTimePickerPage()
  9. {
  10. this.InitializeComponent();
  11. this.Get<TextBlock>("DatePickerDesc").Text = "Use a DatePicker to let users set a date in your app, " +
  12. "for example to schedule an appointment. The DatePicker displays three controls for month, day, and year. " +
  13. "These controls are easy to use with touch or mouse, and they can be styled and configured in several different ways. " +
  14. "Order of month, day, and year is dynamically set based on user date settings";
  15. this.Get<TextBlock>("TimePickerDesc").Text = "Use a TimePicker to let users set a time in your app, for example " +
  16. "to set a reminder. The TimePicker displays three controls for hour, minute, and AM / PM(if necessary).These controls " +
  17. "are easy to use with touch or mouse, and they can be styled and configured in several different ways. " +
  18. "12 - hour or 24 - hour clock and visibility of AM / PM is dynamically set based on user time settings, or can be overridden.";
  19. }
  20. private void InitializeComponent()
  21. {
  22. AvaloniaXamlLoader.Load(this);
  23. }
  24. }
  25. }