Exemplo n.º 1
0
        private void Children_ItemAdded(object sender, ObservableItemCollectionChangedEventArgs <IAbcVisual> args)
        {
            args.Item.VisualParent = this;

            IAbcVisual abcVisual = this;

            if (abcVisual.VisualTree != null)
            {
                args.Item.VisualTree = abcVisual.VisualTree;
            }
        }
Exemplo n.º 2
0
        private void Children_ItemRemoved(object sender, ObservableItemCollectionChangedEventArgs <IAbcVisual> args)
        {
            args.Item.VisualParent = null;

            //// Deliberately do not diconnect from VisualTree, so potential virtualization can be more efficient.
        }