Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
GeometryConverter.cs
1using Microsoft.Maui.Controls.Shapes;
2
3namespace NeuroAccessMaui.UI
4{
5 public class GeometryConverter
6 {
7 private static readonly PathGeometryConverter defaultPathGeometryConverter = new();
8
9 public static PathGeometry ParseStringToPathGeometry(string? PathString, FillRule? FillRule = null)
10 {
11 if (defaultPathGeometryConverter.ConvertFrom(null, null, PathString) is PathGeometry Result)
12 {
13 if (FillRule is not null)
14 Result.FillRule = (FillRule)FillRule;
15
16 return Result;
17 }
18
19 return new();
20 }
21 }
22}