public static void OrientationPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            DisplayMatrix data = obj as DisplayMatrix;

            if (data == null)
            {
                return;
            }

            data._orientation = MathUtility.NormalizeAngle((double)e.NewValue);
            data.OnViewChanged();
        }
        public static void ScalePropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            DisplayMatrix data = obj as DisplayMatrix;

            if (data == null)
            {
                return;
            }

            data._scale = (Vector)e.NewValue;
            data.UpdateActualSizeFromScale();
            data.OnViewChanged();
        }
        public static void CenterPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            DisplayMatrix data = obj as DisplayMatrix;

            if (data == null)
            {
                return;
            }

            data._center = (Point)e.NewValue;
            data.OnViewChanged();
            //data.UpdateMatrix();
        }