Question

Accessing and modifying the selected gradient stop in BrushPicker

Posted 9 months ago by Avatar Moondance

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 9 months ago by Actipro Software Support - Cleveland, OH, USA

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
Information The latest build of this product (2018.1 build 0672) was released 2 months ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.