Example #1
0
        public NewSphereView(NewSphereViewModel viewModel, ILoggerFacade logger)
            : base(viewModel, logger)
        {
            this.viewModel = viewModel;

            this.sphere = new Sphere();
            Children.Add(sphere);

            sphere.Bind(Sphere.RadiusProperty, () => viewModel.Radius);
            sphere.Bind(Sphere.CenterProperty, () => viewModel.Center);
            sphere.SetMaterials(GetDefaultFrontAndBackMaterials(viewModel));
        }
 public Editor(Point startPoint, LineRange startRay, NewSphereViewModel viewModel)
     : base(startPoint, startRay, viewModel)
 {
     this.viewModel = viewModel;
 }