// Create a new CelestialBody object and set its properties var earth = new CelestialBody { Name = "Earth", Mass = 5.97e24, DistanceFromStar = 149.6e6 }; // Get the name of the celestial body string name = earth.Name; // Get the mass of the celestial body double mass = earth.Mass; // Get the distance of the celestial body from its star double distance = earth.DistanceFromStar;This code creates a new CelestialBody object representing Earth and sets its properties. It then retrieves the name, mass, and distance of Earth using the Name, Mass, and DistanceFromStar properties. The CelestialBody class is part of the WPF Toolkit, which is a library of controls and utilities for building Windows Presentation Foundation (WPF) applications.