/// <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; }
/// <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); }
/// <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(ContentPage bindable) { this.dataForm = bindable.FindByName <Syncfusion.XForms.DataForm.SfDataForm>("dataForm"); this.dataForm.LayoutManager = new DataFormLayoutManagerExt(this.dataForm); this.contactLabel = bindable.FindByName <Button>("contactLabel"); this.editAndDoneButton = bindable.FindByName <Button>("editButton"); this.dataForm.BindingContextChanged += this.OnBindingContextChanged; this.viewModel = bindable.BindingContext as ContactListViewModel; this.dataForm.AutoGeneratingDataFormItem += this.OnAutoGeneratingDataFormItem; this.dataForm.Validating += this.OnValidating; base.OnAttachedTo(bindable); }
public DataFormLayoutManagerExt(DataForm dataform) : base(dataform) { }
/// <summary> /// Initializes a new instance of the <see cref="DataFormLayoutManagerExt"/> class. /// </summary> /// <param name="dataform">DataForm control helps editing the data fields of any data object.</param> internal DataFormLayoutCustomization(DataForm dataform) : base(dataform) { }