Beispiel #1
0
        private void setAngle(double a)
        {
            a = FrameworkUtilities.NormalizeAngle(a);

            if (Angle == a)
            {
                return;             // no change
            }
            Angle = a;
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs("SnapOrientation"));
                PropertyChanged(this, new PropertyChangedEventArgs("Angle"));
                PropertyChanged(this, new PropertyChangedEventArgs("AngleInDegrees"));
            }
        }