Пример #1
0
            private void Detached(object sender, LogicalTreeAttachmentEventArgs e)
            {
                if (_nameScope != null)
                {
                    _nameScope.Registered   -= Registered;
                    _nameScope.Unregistered -= Unregistered;
                }

                _value = null;
                PublishNext(null);
            }
Пример #2
0
 private void Detached(object sender, LogicalTreeAttachmentEventArgs e)
 {
     _value = null;
     PublishNext(null);
 }
Пример #3
0
 private void Attached(object sender, LogicalTreeAttachmentEventArgs e)
 {
     Update();
     PublishNext(_value);
 }
Пример #4
0
        /// <inheritdoc/>
        protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e)
        {
            if (VisualChildren.Count > 0)
            {
                ((ILogical)VisualChildren[0]).NotifyDetachedFromLogicalTree(e);
            }

            base.OnDetachedFromLogicalTree(e);
        }
Пример #5
0
 protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnAttachedToLogicalTree(e);
     InvalidateFormattedText();
 }
Пример #6
0
 /// <inheritdoc/>
 protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnAttachedToLogicalTree(e);
     this.UpdateSelectionBoxItem(this.SelectedItem);
 }
Пример #7
0
 /// <inheritdoc/>
 protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnAttachedToLogicalTree(e);
     _createdChild = false;
     InvalidateMeasure();
 }
Пример #8
0
 /// <inheritdoc/>
 protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnDetachedFromLogicalTree(e);
     _topLevel = null;
     _popupRoot?.Dispose();
     _popupRoot = null;
 }
Пример #9
0
 /// <inheritdoc/>
 protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnAttachedToLogicalTree(e);
     _topLevel = e.Root as TopLevel;
 }
Пример #10
0
        /// <inheritdoc/>
        protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
        {
            base.OnAttachedToLogicalTree(e);
            _treeView = this.GetLogicalAncestors().OfType<TreeView>().FirstOrDefault();

            if (ItemTemplate == null && _treeView?.ItemTemplate != null)
            {
                ItemTemplate = _treeView.ItemTemplate;
            }
        }
Пример #11
0
 protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnDetachedFromLogicalTree(e);
     ItemContainerGenerator.Clear();
 }
 protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     Order.Add("AttachedToLogicalTree");
     base.OnAttachedToLogicalTree(e);
 }
Пример #13
-1
 /// <inheritdoc/>
 protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnDetachedFromLogicalTree(e);
     _topLevel = null;
     
     if (_popupRoot != null)
     {
         ((ISetLogicalParent)_popupRoot).SetParent(null);
         _popupRoot.Dispose();
         _popupRoot = null;
     }
 }