/// <summary> /// Merges editor scalar binding into <see cref="InPlaceEditor"/>, with inert scalar binding. /// </summary> /// <typeparam name="TEditor">The element type of editor scalar binding.</typeparam> /// <typeparam name="TInert">The element type of inert scalar binding.</typeparam> /// <param name="editorScalarBinding">The editor scalar binding.</param> /// <param name="inertScalarBinding">The inert scacalr binding.</param> /// <returns>The scalar binding object of <see cref="InPlaceEditor"/>.</returns> public static ScalarBinding <InPlaceEditor> MergeIntoInPlaceEditor <TEditor, TInert>(this ScalarBinding <TEditor> editorScalarBinding, ScalarBinding <TInert> inertScalarBinding) where TEditor : UIElement, new() where TInert : UIElement, new() { var scalarInput = VerifyEditorBinding(editorScalarBinding, nameof(editorScalarBinding)); inertScalarBinding.VerifyNotNull(nameof(inertScalarBinding)); return(MergeIntoInPlaceEditor(scalarInput, inertScalarBinding)); }
/// <summary> /// Returns the operation that set initial focus to explicit scalar binding. /// </summary> /// <param name="binding">The scalar binding.</param> /// <returns>The result <see cref="InitialFocus"/>.</returns> public static InitialFocus Explicit(ScalarBinding binding) { binding.VerifyNotNull(nameof(binding)); return(new MoveToScalarBinding(binding)); }