ExtensionsGet |
public static string GetName( this MeshGeometry3D meshGeometry3D )
Though many objects in WPF does not have Name property (with public Name getters and setters), it is still possible to set value for the Name property with using a SetValue method on DependencyObjects:
dependencyObjects.SetValue(FrameworkElement.NameProperty, name);
The value of the Name can than be read with:
return dependencyObjects.GetValue(FrameworkElement.NameProperty) as string;
The SetName and GetName extension methods simplify setting the values on commonly used 3D objects.