예제 #1
0
        internal static void OnwidthHeightDepthChanged(Object sender, DependencyPropertyChangedEventArgs e)
        {
            Base3D p = ((Base3D)sender);

            p.WidthHeightDepth  = (double)(e.NewValue);
            p._content.Geometry = p.Draw();
        }
예제 #2
0
        internal static void OnPoint3dChanged(Object sender, DependencyPropertyChangedEventArgs e)
        {
            Base3D p = ((Base3D)sender);

            p.StartingPointCube = (Point3D)(e.NewValue);
            p._content.Geometry = p.Draw();
        }
예제 #3
0
        internal static void opacityPropertyChanged(Object sender, DependencyPropertyChangedEventArgs e)
        {
            Base3D p = ((Base3D)sender);

            if (p.opacity != (double)(e.NewValue))
            {
                p.opacity           = (double)(e.NewValue);
                p._content.Geometry = p.Draw();
            }
        }
예제 #4
0
        internal static void colorPropertyChanged(Object sender, DependencyPropertyChangedEventArgs e)
        {
            Base3D p = ((Base3D)sender);

            p.color = (Color)(e.NewValue);
            if (p.Draw() != null)
            {
                p._content.Geometry = p.Draw();
            }
        }