Skip to content

Commit

Permalink
feat: Added CompositionColorGradientStop implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
VitezslavImrysek committed Jul 30, 2021
1 parent d555e13 commit 14210e6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down
28 changes: 28 additions & 0 deletions src/Uno.UWP/UI/Composition/CompositionColorGradientStop.cs
Original file line number Diff line number Diff line change
@@ -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);
}
}
}

0 comments on commit 14210e6

Please sign in to comment.