Пример #1
0
        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;
        }
 /// <inheritdoc />
 public override object ProvideValue(IServiceProvider serviceProvider)
 {
     return(CommonShapeFactory.GetShapeGeometry(ShapeType));
 }