コード例 #1
0
 private void CustomTimePicker_OnColumnLoaded(object sender, ColumnLoadedEventArgs e)
 {
     // For restrict the AutoReverse in column 1
     if (e.Column == 1)
     {
         e.EnableLooping = false;
     }
 }
コード例 #2
0
 void Picker_GetColumnWidth(object sender, ColumnLoadedEventArgs e)
 {
     if (Device.RuntimePlatform == Device.Android)
     {
         if (e.Column == 0)
         {
             e.ColumnWidth = 356;
         }
         if (e.Column == 1)
         {
             e.ColumnWidth = 216;
         }
     }
 }
コード例 #3
0
 void Picker_GetColumnWidth(object sender, ColumnLoadedEventArgs e)
 {
     if (Device.OS == TargetPlatform.Android)
     {
         if (e.Column == 0)
         {
             e.ColumnWidth = 356;
         }
         if (e.Column == 1)
         {
             e.ColumnWidth = 216;
         }
     }
 }
コード例 #4
0
 private void date_OnColumnLoaded(object sender, ColumnLoadedEventArgs e)
 {
     //Column width adjusted based on platform
     if (Device.RuntimePlatform == Device.Android)
     {
         if (e.Column == 0)
         {
             e.ColumnWidth = 400;
         }
         if (e.Column == 1)
         {
             e.ColumnWidth = 150;
         }
         if (e.Column == 2)
         {
             e.ColumnWidth = 150;
         }
         if (e.Column == 3)
         {
             e.ColumnWidth = 200;
         }
     }
     if (Device.RuntimePlatform == Device.iOS)
     {
         if (e.Column == 0)
         {
             e.ColumnWidth = 130;
         }
         if (e.Column == 1)
         {
             e.ColumnWidth = 50;
         }
         if (e.Column == 2)
         {
             e.ColumnWidth = 50;
         }
         if (e.Column == 3)
         {
             e.ColumnWidth = 70;
         }
     }
     else
     {
         if (e.Column == 0)
         {
             e.ColumnWidth = 130;
         }
     }
 }