Пример #1
0
        /// <summary>
        /// CleanUp
        /// </summary>
        private void CleanUp()
        {
            isAttached = false;

            loadingBehaviorAdornerLayer.Remove(loadingBehaviorAdorner);

            loadingBehaviorAdorner      = null;
            loadingBehaviorAdornerLayer = null;
        }
Пример #2
0
        /// <summary>
        /// Init
        /// </summary>
        private void Init()
        {
            isAttached = true;

            loadingBehaviorAdornerLayer = AdornerLayer.GetAdornerLayer(this.AssociatedObject);
            loadingBehaviorAdorner      = new LoadingBehaviorAdorner(this.AssociatedObject);

            UpdateAdorner();
            UpdateAdornerContent();
            UpdateAdornerContentTemplate();
            UpdateAdornerContentDataContext();
        }