Added public explicit refresh method to GradientSlider#798
Added public explicit refresh method to GradientSlider#798Avid29 wants to merge 1 commit intoCommunityToolkit:mainfrom
Conversation
|
@Avid29 if you make this an Labs-Windows/components/GradientSlider/src/GradientSlider.cs Lines 45 to 57 in f437e52 Would it be nicer to just have an |
|
@michael-hawker I'm not sure I understand what you mean. That code is using collection initialization syntax to initialize a However, whether or not using
Using a I think my perspective is to leave as is (with this change) for now, and look at something using a |
This PR introduces a rather brute-force "solution" to issue #796.
A new method
Refreshis added to theGradientSliderwhich allows the developer to inform the control that theGradientStopCollectionhas been modified externally.