Exemplo n.º 1
0
 void Picker_SelectionChanged(object sender, Syncfusion.SfPicker.XForms.SelectionChangedEventArgs e)
 {
     if (e.NewValue != null)
     {
         Label lbl = new Label();
         lbl.Text = e.NewValue.ToString() + " " + "has been selected";
         eventLogLayout.Children.Insert(0, lbl);
         color = PickerHelper.GetColor(e.NewValue);
         if (Device.RuntimePlatform == Device.UWP)
         {
             picker.SelectionBackgroundColor = color;
         }
         else
         {
             picker.BackgroundColor = Color.FromRgba(color.R, color.G, color.B, 0.2);
         }
     }
 }
Exemplo n.º 2
0
 void Handle_SelectedIndexChanged4(object sender, System.EventArgs e)
 {
     picker.UnSelectedItemTextColor = PickerHelper.GetColor(UnSelectedRowTextColorPicker.Items[UnSelectedRowTextColorPicker.SelectedIndex]);
 }
Exemplo n.º 3
0
 void Handle_SelectedIndexChanged5(object sender, System.EventArgs e)
 {
     picker.BorderColor = PickerHelper.GetColor(BorderColorPicker.Items[BorderColorPicker.SelectedIndex]);
 }