Exemplo n.º 1
0
        /// <summary>
        /// respond to a dependency-property change
        /// </summary>
        /// <param name="d">This Dot</param>
        /// <param name="e">unused</param>
        private static void PositionValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Dot myDot = (Dot)d;

            myDot.Position = (Point)myDot.GetValue(PositionProperty);
            myDot.setToolTip();

            //Debug.Print("Position Changed: " + myDot.Position);
        }
Exemplo n.º 2
0
        private static void YValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Dot   myDot = (Dot)d;
            Point p     = myDot.Position;

            p.Y = (double)e.NewValue;
            myDot.SetValue(PositionProperty, p);
            myDot.setToolTip();
            //Debug.Print("Y Changed");
        }