/// <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;
 }
Пример #3
0
 /// <summary>
 /// Sets the icon attached property
 /// </summary>
 public static void SetIcon(DependencyObject element, CommonShapeType value)
 {
     element.SetValue(IconProperty, value);
 }