Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions components/GradientSlider/src/GradientSlider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ public GradientSlider()
];
}

/// <summary>
/// Explicitly reloads the thumbs for the current <see cref="GradientStopCollection"/>.
/// </summary>
/// <remarks>
/// This method must be used if a <see cref="GradientStop"/> is added or removed from the collection externally.
/// It need not be used when a <see cref="GradientStop.Color"/> or <see cref="GradientStop.Offset"/> is modified, as those changes are automatically observed.
/// See <see href="https://github.com/CommunityToolkit/Labs-Windows/issues/796"/> for more details.
/// </remarks>
public void Refresh() => RefreshThumbs();

/// <inheritdoc />
protected override void OnApplyTemplate()
{
Expand Down
Loading