From 14210e68779b568295f93a33a7e46aa87f316f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20Imr=C3=BD=C5=A1ek?= Date: Fri, 30 Jul 2021 14:05:31 +0200 Subject: [PATCH] feat: Added CompositionColorGradientStop implementation --- .../CompositionColorGradientStop.cs | 6 ++-- .../CompositionColorGradientStop.cs | 28 +++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 src/Uno.UWP/UI/Composition/CompositionColorGradientStop.cs diff --git a/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/CompositionColorGradientStop.cs b/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/CompositionColorGradientStop.cs index d6fc384779a1..06a40b2d1d5d 100644 --- a/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/CompositionColorGradientStop.cs +++ b/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/CompositionColorGradientStop.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 CompositionColorGradientStop : global::Windows.UI.Composition.CompositionObject { - #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ + #if false [global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")] public float Offset { @@ -21,7 +21,7 @@ public float Offset } } #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::Windows.UI.Color Color { diff --git a/src/Uno.UWP/UI/Composition/CompositionColorGradientStop.cs b/src/Uno.UWP/UI/Composition/CompositionColorGradientStop.cs new file mode 100644 index 000000000000..2c58c056291b --- /dev/null +++ b/src/Uno.UWP/UI/Composition/CompositionColorGradientStop.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace Windows.UI.Composition +{ + public partial class CompositionColorGradientStop : CompositionObject + { + private float _offset; + private Color _color; + + internal CompositionColorGradientStop(Compositor compositor) + : base(compositor) + { + + } + + public float Offset + { + get => _offset; + set => SetProperty(ref _offset, value); + } + + public Color Color + { + get => _color; + set => SetProperty(ref _color, value); + } + } +}