Skip to content

Commit 79d5a4a

Browse files
committed
feat: Support for Vector2 conversion in XAML source generator
1 parent 5b882d0 commit 79d5a4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4918,6 +4918,9 @@ string Inner()
49184918
case "Windows.Foundation.Point":
49194919
return "new Windows.Foundation.Point(" + SplitAndJoin(memberValue) + ")";
49204920

4921+
case "System.Numerics.Vector2":
4922+
return "new global::System.Numerics.Vector2(" + memberValue + ")";
4923+
49214924
case "System.Numerics.Vector3":
49224925
return "new global::System.Numerics.Vector3(" + memberValue + ")";
49234926

0 commit comments

Comments
 (0)