diff --git a/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/CompositionEllipseGeometry.cs b/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/CompositionEllipseGeometry.cs index ee615ca024ce..5bd113a8218a 100644 --- a/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/CompositionEllipseGeometry.cs +++ b/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/CompositionEllipseGeometry.cs @@ -2,12 +2,12 @@ #pragma warning disable 114 // new keyword hiding namespace Windows.UI.Composition { - #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ + #if false [global::Uno.NotImplemented] #endif public partial class CompositionEllipseGeometry : global::Windows.UI.Composition.CompositionGeometry { - #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ + #if false [global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")] public global::System.Numerics.Vector2 Radius { @@ -21,7 +21,7 @@ public partial class CompositionEllipseGeometry : global::Windows.UI.Compositio } } #endif - #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ + #if false [global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")] public global::System.Numerics.Vector2 Center { diff --git a/src/Uno.UWP/UI/Composition/CompositionEllipseGeometry.cs b/src/Uno.UWP/UI/Composition/CompositionEllipseGeometry.cs new file mode 100644 index 000000000000..97f9dc6893d8 --- /dev/null +++ b/src/Uno.UWP/UI/Composition/CompositionEllipseGeometry.cs @@ -0,0 +1,29 @@ +#nullable enable + +using System.Numerics; + +namespace Windows.UI.Composition +{ + public partial class CompositionEllipseGeometry : CompositionGeometry + { + private Vector2 _radius; + private Vector2 _center; + + internal CompositionEllipseGeometry(Compositor compositor) : base(compositor) + { + + } + + public Vector2 Radius + { + get => _radius; + set => SetProperty(ref _radius, value); + } + + public Vector2 Center + { + get => _center; + set => SetProperty(ref _center, value); + } + } +} diff --git a/src/Uno.UWP/UI/Composition/CompositionEllipseGeometry.skia.cs b/src/Uno.UWP/UI/Composition/CompositionEllipseGeometry.skia.cs new file mode 100644 index 000000000000..735af838763b --- /dev/null +++ b/src/Uno.UWP/UI/Composition/CompositionEllipseGeometry.skia.cs @@ -0,0 +1,12 @@ +#nullable enable + +using Windows.Graphics; + +namespace Windows.UI.Composition +{ + public partial class CompositionEllipseGeometry : CompositionGeometry + { + internal override IGeometrySource2D? BuildGeometry() + => new SkiaGeometrySource2D(BuildEllipseGeometry(Center, Radius)); + } +}