Beispiel #1
0
        protected internal override void INTERNAL_OnAttachedToVisualTree()
        {
            if (this.BorderBrush == null)
            {
                INTERNAL_PropertyStore.ApplyCssChanges(null, null, Border.BorderBrushProperty.GetMetadata(typeof(Border)), this);
            }

#if REWORKLOADED
            this.AddVisualChild(this._child);
#else
            INTERNAL_VisualTreeManager.AttachVisualChildIfNotAlreadyAttached(_child, this);
#endif
        }
Beispiel #2
0
        protected internal override void INTERNAL_OnAttachedToVisualTree()
        {
            base.INTERNAL_OnAttachedToVisualTree();

            if (this.BorderBrush == null)
            {
                INTERNAL_PropertyStore.ApplyCssChanges(null, null, Border.BorderBrushProperty.GetMetadata(typeof(Border)), this);
            }

            if (!this.INTERNAL_EnableProgressiveLoading)
            {
                INTERNAL_VisualTreeManager.AttachVisualChildIfNotAlreadyAttached(_child, this);
            }
            else
            {
                ProgressivelyAttachChild();
            }
        }