private void ExecuteWithNoRelayout(BindableView view, Action <BindableView> action) { using (view.PreventRequestLayout()) { action(view); } }
private static void ExecuteWithNoRelayout(BindableView target, Action <BindableView> action) { if (target == null) { throw new ArgumentNullException(nameof(target)); } using (target.PreventRequestLayout()) { action(target); } }