Пример #1
0
        public override void Dispose()
        {
            definition.ClearValue(OrderableBehavior.SiteProperty);

            if (DragHeader == null)
            {
                return;
            }

            DragHeader.ClearValue(OrderableBehavior.SiteProperty);
            LoadProperties(DragHeader);

            foreach (var child in Children)
            {
                RemoveSiteRenderTransform(child, SiteRenderTransform);

                if (child == DragHeader)
                {
                    continue;
                }

                BindingOperations.ClearBinding(child, UIElement.OpacityProperty);
                BindingOperations.ClearBinding(child, Panel.ZIndexProperty);
            }
        }