Panel that has polymorphic layout/animate strategies.
Inheritance: MetaPanelBase
Ejemplo n.º 1
0
        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.");
            }
        }
Ejemplo 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();
                }
            }
        }