コード例 #1
0
 private void OnChildViewRemoved(object sender, ChildViewRemovedEventArgs childViewRemovedEventArgs)
 {
     var boundChild = childViewRemovedEventArgs.Child as IMvxBindingContextOwner;
     if (boundChild != null)
     {
         boundChild.ClearAllBindings();
     }
 }
コード例 #2
0
 private void OnChildViewRemoved(object sender, ChildViewRemovedEventArgs childViewRemovedEventArgs)
 {
     var boundChild = childViewRemovedEventArgs.Child as MvxBindableListItemView;
     if (boundChild != null)
     {
         boundChild.ClearBindings();
     }
 }
コード例 #3
0
        private void OnChildViewRemoved(object sender, ChildViewRemovedEventArgs childViewRemovedEventArgs)
        {
            var boundChild = childViewRemovedEventArgs.Child as IMvxBindingContextOwner;

            if (boundChild != null)
            {
                boundChild.ClearAllBindings();
            }
        }
コード例 #4
0
        private void OnChildViewRemoved(object sender, ChildViewRemovedEventArgs childViewRemovedEventArgs)
        {
            var boundChild = childViewRemovedEventArgs.Child as MvxBindableListItemView;

            if (boundChild != null)
            {
                boundChild.ClearBindings();
            }
        }
コード例 #5
0
ファイル: GridBase.cs プロジェクト: Zebra/iFactr-Android
        private void GridBase_ChildViewRemoved(object sender, ChildViewRemovedEventArgs e)
        {
            ResizeRequested = true;
            var control = e.Child as IElement;

            if (control == null)
            {
                return;
            }

            var submission = control as IControl;

            if (submission?.SubmitKey != null)
            {
                GetSubmissions()?.Remove(submission.SubmitKey);
            }
            OnPropertyChanged(nameof(Children));
        }
コード例 #6
0
 private void OnChildViewRemoved(object sender, ChildViewRemovedEventArgs childViewRemovedEventArgs)
 {
     _bindingManager.UnbindView (childViewRemovedEventArgs.Child);
 }