/// <summary> /// CleanUp /// </summary> private void CleanUp() { isAttached = false; loadingBehaviorAdornerLayer.Remove(loadingBehaviorAdorner); loadingBehaviorAdorner = null; loadingBehaviorAdornerLayer = null; }
/// <summary> /// Init /// </summary> private void Init() { isAttached = true; loadingBehaviorAdornerLayer = AdornerLayer.GetAdornerLayer(this.AssociatedObject); loadingBehaviorAdorner = new LoadingBehaviorAdorner(this.AssociatedObject); UpdateAdorner(); UpdateAdornerContent(); UpdateAdornerContentTemplate(); UpdateAdornerContentDataContext(); }