/// <summary>
 /// Creates the icon by given <see cref="CommonShapeType"/>
 /// </summary>
 public static Geometry GetShapeGeometry(CommonShapeType shapeType)
 {
     return(!CommonGeometries.ContainsKey(shapeType) ? null : Geometry.Parse(CommonGeometries[shapeType]));
 }
示例#2
0
 /// <summary>
 /// Constructor to create the shape extension with an initial shape type
 /// </summary>
 public CommonShapeExtension(CommonShapeType shapeType)
 {
     ShapeType = shapeType;
 }
 /// <summary>
 /// Sets the icon attached property
 /// </summary>
 public static void SetIcon(DependencyObject element, CommonShapeType value)
 {
     element.SetValue(IconProperty, value);
 }