/// <summary>
 /// Calls the OnDetachingFrom method and then detaches from the superclass.
 /// </summary>
 /// <param name="bindable">The bindable object from which the behavior was detached.</param>
 protected override void OnDetachingFrom(SampleView bindable)
 {
     base.OnDetachingFrom(bindable);
     sfComboBox.SelectionChanged -= SfComboBox_SelectionChanged;
     dataForm   = null;
     sfComboBox = null;
 }
Пример #2
0
 /// <summary>
 /// Attaches to the superclass and then calls the OnAttachedTo method on this object.
 /// </summary>
 /// <param name="bindable">The bindable object to which the behavior was attached.</param>
 protected override void OnAttachedTo(SampleView bindable)
 {
     base.OnAttachedTo(bindable);
     sfComboBox = bindable.FindByName <ComboBox>("combo");
     sfComboBox.SelectionChanged += SfComboBox_SelectionChanged;
     sfComboBox.SelectedItem      = "Organization Form";
     dataForm = bindable.FindByName <DataForm>("dataForm");
 }
 /// <summary>
 /// Attaches to the superclass and then calls the OnAttachedTo method on this object.
 /// </summary>
 /// <param name="bindable">The bindable object to which the behavior was attached.</param>
 protected override void OnAttachedTo(SampleView bindable)
 {
     base.OnAttachedTo(bindable);
     sfComboBox = bindable.FindByName <ComboBox>("combo");
     sfComboBox.SelectionChanged += SfComboBox_SelectionChanged;
     sfComboBox.SelectedItem      = "Organization Form";
     dataForm = bindable.FindByName <DataForm>("dataForm");
     this.dataForm.LayoutManager = new DataFormLayoutCustomization(this.dataForm);
 }
Пример #4
0
 private void ComboBox2_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
 {
     Syncfusion.XForms.ComboBox.SfComboBox comboBox = sender as Syncfusion.XForms.ComboBox.SfComboBox;
     if (comboBox.SelectedIndex >= 0)
     {
         question2.IsEnabled = true;
     }
     else
     {
         question2.IsEnabled = false;
     }
 }