Panel that has polymorphic layout/animate strategies.
Inheritance: MetaPanelBase
        private void VerifyWriteAccess()
        {
            MetaPanel panel = _visualParent as MetaPanel;

            if ((panel != null) && panel.IsDataBound)
            {
                throw new InvalidOperationException("Cannot modify Children collection of a data bound MetaPanel.");
            }
        }
Exemplo n.º 2
0
        private static void OnCanvasChanged(DependencyObject d,
                                            DependencyPropertyChangedEventArgs e)
        {
            UIElement element = d as UIElement;

            if (element != null)
            {
                MetaPanel parent = VisualTreeHelper.GetParent(element) as MetaPanel;
                if (parent != null)
                {
                    parent.InvalidateMeasure();
                }
            }
        }