Example #1
0
        private static void OnIsOrderReversedChanged(DependencyObject d,
                                                     DependencyPropertyChangedEventArgs e)
        {
            ZOrderControl2 control = d as ZOrderControl2;

            Reparent(control);
        }
Example #2
0
        private static void Reparent(ZOrderControl2 control)
        {
            for (int i = 0; i < control.Children.Count; i++)
            {
                control.RemoveVisualChild(control.Children[i]);
            }

            for (int i = 0; i < control.Children.Count; i++)
            {
                control.AddVisualChild(control.Children[i]);
            }
        }