CommunityToolkit / CommunityToolkit/Labs-Windows

🧪 [Experiment] GradientSlider

Open
#768 0 comments 1 reaction 0 assignees View on GitHub
experiment :test_tube:
Dominant language
C#
Stars
482
Forks
89
PR merge metrics
No merged PRs in 30d

Description

### Approved from Discussion

https://discord.com/channels/372137812037730304/1458607373420597260/1458607376914714704

### Problem Statement

Allow easily user modified color gradients.

The inspiration in this case was as a tool for XAML studio, where a user might want to modify a `LinearGradientBrush`, but it could also apply for art or image editing software.

### Overview

This experiment adds a new `GradientSlider` control and a `GradientSliderThumb` for the gradient stops inside the slider.

### Using

You can try it out via the NuGet Packages here:
- UWP: https://dev.azure.com/dotnet/CommunityToolkit/_artifacts/feed/CommunityToolkit-Labs/NuGet/CommunityToolkit.Labs.Uwp.ExperimentName/overview/0.0.1
- WinUI 3: https://dev.azure.com/dotnet/CommunityToolkit/_artifacts/feed/CommunityToolkit-Labs/NuGet/CommunityToolkit.Labs.WinUI.ExperimentName/overview/0.0.1
Read more about [Preview Packages here](https://aka.ms/wct/wiki/previewpackages).

### Additional info

Original inspiration photo (screenshot from Blender)

Image

### Implementation Requirements

- [x] Working Prototype
- [ ] Feature Complete
- [ ] Documentation
- [ ] Samples
- [ ] Unit Tests
- [ ] Community Feedback / Usage Testimonies

### Tested Platforms

- [ ] UWP
- [x] WinAppSDK / WinUI 3
- [ ] Web Assembly (WASM)
- [ ] Android
- [ ] iOS
- [ ] MacOS
- [ ] Linux / GTK

### Technical Review

- [ ] Accessibility Audit
- [ ] API/Naming Review
- [ ] Code Quality/Style
- [ ] Dependency Review
- [ ] Design/Style Review
- [ ] Final Approval

### Community Help?

None

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.