/// <summary> /// Initializes a new instance of the <see cref="ExtendedTreeViewItemBase"/> class. /// </summary> /// <param name="host">The tree to which this item belongs.</param> public ExtendedTreeViewItemBase(ExtendedTreeViewBase host) { Host = host; object DefaultStyle = TryFindResource(typeof(ExtendedTreeViewItemBase)); if (DefaultStyle == null) { Resources.MergedDictionaries.Add(SharedResourceDictionaryManager.SharedDictionary); } }
/// <summary> /// Updates the <see cref="IsDropOver"/> property. /// </summary> public void UpdateIsDropOver() { SetValue(IsDropOverPropertyKey, ExtendedTreeViewBase.IsDropOver(this)); }
/// <summary> /// Handles changes of the <see cref="AllowDragDrop"/> property. /// </summary> /// <param name="modifiedObject">The modified object.</param> /// <param name="e">An object that contains event data.</param> protected static void OnAllowDragDropChanged(DependencyObject modifiedObject, DependencyPropertyChangedEventArgs e) { ExtendedTreeViewBase ctrl = (ExtendedTreeViewBase)modifiedObject; ctrl.OnAllowDragDropChanged(e); }