protected override void OnAttachedTo(SampleView bindable)
        {
            TreeView = bindable.FindByName <Syncfusion.XForms.TreeView.SfTreeView>("treeView");

            animationPicker = bindable.FindByName <Picker>("enableAnimation");
            animationPicker.Items.Add("False");
            animationPicker.Items.Add("True");
            animationPicker.SelectedIndex         = 1;
            animationPicker.SelectedIndexChanged += EnableAnimation_SelectedIndexChanged;

            expanderPositionPicker = bindable.FindByName <Picker>("expanderPosition");
            expanderPositionPicker.Items.Add("Start");
            expanderPositionPicker.Items.Add("End");
            expanderPositionPicker.SelectedIndex         = 0;
            expanderPositionPicker.SelectedIndexChanged += ExpanderPosition_SelectedIndexChanged;

            base.OnAttachedTo(bindable);
        }
 protected override void OnAttachedTo(ContentPage bindable)
 {
     base.OnAttachedTo(bindable);
     treeView = bindable.FindByName <SfTreeView>("treeView");
     treeView.ItemDoubleTapped += TreeView_ItemDoubleTapped;
 }