예제 #1
0
        protected static void MyIsSelectedPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            LineManipulator3D lm = d as LineManipulator3D;

            if (lm != null)
            {
                lm.IsSelectedCopy = lm.IsSelected;
            }
        }
예제 #2
0
        protected static void MyCoordsTargetInPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            LineManipulator3D lm = d as LineManipulator3D;

            if (lm != null)
            {
                List <Point3D> newVal = e.NewValue as List <Point3D>;
                if (newVal != null)
                {
                    if (newVal.Count > 0)
                    {
                        lm.IsSelected = true;
                    }
                    else
                    {
                        lm.IsSelected = false;
                    }
                }
                lm.UpdateOnCoordsChange();
            }
        }