-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added CompositionColorGradientStop implementation
- Loading branch information
1 parent
d555e13
commit 14210e6
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/Uno.UWP/UI/Composition/CompositionColorGradientStop.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |