This commit is contained in:
rogier committed 2026-11-10 15:33:49 +01:00
1 parent 36c55c034c
commit c2f8063518
34 files changed
+3039 -136

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
using System;
using System.Globalization;
using System.Windows.Data;
using Kniip.Editor.Annotations;
namespace Kniip.Editor;
/// <summary>Geeft de vectorvorm van een vormsoort, voor het icoon in de vormkeuze en op de werkbalkknop.</summary>
public sealed class ShapeIconConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) =>
ShapeGeometries.For(value is ShapeKind kind ? kind : ShapeKind.Triangle);
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) =>
throw new NotSupportedException();
}