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

                _value = null;
                PublishNext(null);
            }
 private void Detached(object sender, LogicalTreeAttachmentEventArgs e)
 {
     _value = null;
     PublishNext(null);
 }
 private void Attached(object sender, LogicalTreeAttachmentEventArgs e)
 {
     Update();
     PublishNext(_value);
 }
        /// <inheritdoc/>
        protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e)
        {
            if (VisualChildren.Count > 0)
            {
                ((ILogical)VisualChildren[0]).NotifyDetachedFromLogicalTree(e);
            }

            base.OnDetachedFromLogicalTree(e);
        }
Exemple #5
0
 protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnAttachedToLogicalTree(e);
     InvalidateFormattedText();
 }
Exemple #6
0
 /// <inheritdoc/>
 protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnAttachedToLogicalTree(e);
     this.UpdateSelectionBoxItem(this.SelectedItem);
 }
 /// <inheritdoc/>
 protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnAttachedToLogicalTree(e);
     _createdChild = false;
     InvalidateMeasure();
 }
Exemple #8
0
 /// <inheritdoc/>
 protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnDetachedFromLogicalTree(e);
     _topLevel = null;
     _popupRoot?.Dispose();
     _popupRoot = null;
 }
Exemple #9
0
 /// <inheritdoc/>
 protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
 {
     base.OnAttachedToLogicalTree(e);
     _topLevel = e.Root as TopLevel;
 }
Exemple #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;
            }
        }
Exemple #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);
 }
Exemple #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;
     }
 }