private static void IconChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
        {
            var shape = CommonShapeFactory.GetShapeGeometry((CommonShapeType)args.NewValue);

            var path = d as Path;

            if (path == null)
            {
                return;
            }

            path.Data    = shape;
            path.Stretch = Stretch.Uniform;
        }
Esempio n. 2
0
 /// <inheritdoc />
 public override object ProvideValue(IServiceProvider serviceProvider)
 {
     return(CommonShapeFactory.GetShapeGeometry(ShapeType));
 }