コード例 #1
0
        private static void EditableChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (d == null)
            {
                return;
            }
            MatrixV view = d as MatrixV;

            if (view == null)
            {
                return;
            }

            view.OnPropertyChanged(nameof(view.Editable));
        }
コード例 #2
0
        private static void MatrixChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (d == null)
            {
                return;
            }
            MatrixV view = d as MatrixV;

            if (view == null)
            {
                return;
            }

            view.Matrix.CopyByDiagonal = view.CopyByDiagonal;
            view.OnPropertyChanged(nameof(view.Matrix));
        }