コード例 #1
0
 private void ExecuteWithNoRelayout(BindableView view, Action <BindableView> action)
 {
     using (view.PreventRequestLayout())
     {
         action(view);
     }
 }
コード例 #2
0
        private static void ExecuteWithNoRelayout(BindableView target, Action <BindableView> action)
        {
            if (target == null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            using (target.PreventRequestLayout())
            {
                action(target);
            }
        }