예제 #1
0
        private void RotationTravel_GotFocus(object sender, RoutedEventArgs e)
        {
            PotentiometerKnob pot = Control as PotentiometerKnob;

            if (pot != null)
            {
                pot.Value = pot.MaxValue;
            }
        }
예제 #2
0
        private void InitialRotation_GotFocus(object sender, RoutedEventArgs e)
        {
            PotentiometerKnob pot = Control as PotentiometerKnob;

            if (pot != null)
            {
                pot.Value = pot.MinValue;
            }
        }