Exemplo n.º 1
0
        private static void OnStackPanelOrientationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            StackPanel sp = d as StackPanel;

            if (sp == null)
            {
                return;
            }

            sp.InvalidateMeasure();
            sp.InvalidateArrange();
        }