Пример #1
0
 public CalendarLocalization()
 {
     InitializeComponent();
     if (Device.Idiom == TargetIdiom.Phone || Device.RuntimePlatform == "UWP")
     {
         CalendarLocalization_Default autocomplete = new CalendarLocalization_Default();
         this.Content      = autocomplete.getContent();
         this.PropertyView = autocomplete.getPropertyView();
     }
     else if (Device.Idiom == TargetIdiom.Tablet)
     {
         CalendarLocalization_Tablet autocompleteTab = new CalendarLocalization_Tablet();
         this.Content      = autocompleteTab.getContent();
         this.PropertyView = autocompleteTab.getPropertiesView();
     }
 }
Пример #2
0
 public CalendarLocalization()
 {
     InitializeComponent();
     if (Device.Idiom == TargetIdiom.Phone || Device.OS == TargetPlatform.Windows)
     {
         CalendarLocalization_Default autocomplete = new CalendarLocalization_Default();
         this.Content      = autocomplete.getContent();
         this.PropertyView = autocomplete.getPropertyView();
         this.Padding      = new Thickness(-10);
     }
     else if (Device.Idiom == TargetIdiom.Tablet)
     {
         CalendarLocalization_Tablet autocompleteTab = new CalendarLocalization_Tablet();
         this.Content      = autocompleteTab.getContent();
         this.PropertyView = autocompleteTab.getPropertiesView();
     }
 }