Accessing and modifying the selected gradient stop in BrushPicker

Editors for WPF Forum

Posted 2 years ago by Moondance
Version: 17.2.0662
Avatar

Hello,

In our application we need to be able to detect the selected gradient stop and at times change some of its properties programmatically (ex: offset, color etc).

By looking at the BrushPicker I do not see a property that can be useful for this nor a method that I could override or event I could sunscbribe to get the information and functionality I need.

Am I missing something? Is it even possible?

 

Thanks

Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

In the latest 2017.2 version, while the GradientStopSlider control does have a SelectedStopIndex property, it's not used or published up in any way to a BrushPIcker that might be containing the GradientStopSlider, since the picker only needs to bind the brush itself and the selected color.  

If you have a picker reference, you could do a visual tree search for the GradientStopSlider control and get to SelectedStopIndex that way.


Actipro Software Support

The latest build of this product (v2019.1 build 0682) was released 30 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.