/// <summary> /// Sets the value of the <see cref="P:DigitalRune.Windows.Docking.DockTabPanel.IsDraggedProperty"/> attached /// property to a given <see cref="DependencyObject"/> object. /// </summary> /// <param name="obj">The object on which to set the property value.</param> /// <param name="value">The property value to set.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="obj"/> is <see langword="null"/>. /// </exception> public static void SetIsDragged(DependencyObject obj, bool value) { if (obj == null) { throw new ArgumentNullException(nameof(obj)); } obj.SetValue(IsDraggedProperty, Boxed.Get(value)); }
/// <summary> /// Sets the value of the <see cref="P:DigitalRune.Windows.Controls.TreeViewEx.IsSelectionActive"/> /// attached property to a given <see cref="DependencyObject"/> object. /// </summary> /// <param name="obj">The object on which to set the property value.</param> /// <param name="value">The property value to set.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="obj"/> is <see langword="null"/>. /// </exception> private static void SetIsSelectionActive(DependencyObject obj, bool value) { if (obj == null) { throw new ArgumentNullException(nameof(obj)); } obj.SetValue(IsSelectionActivePropertyKey, Boxed.Get(value)); }