GradientStopSlider bug when used in a popup or a window with auto size content

Editors for WPF Forum

Posted 5 months ago by Julien Audran
Version: 18.1.0673
Platform: .NET 4.7
Environment: Windows 10 (64-bit)
Avatar

Hello,

We find out a small bug with the GradientStopSlider control. If you use it within a popup (for instance in a shared PopupButton popup content), it will use the full screen width. We find out that the PART_Checkerboard in the code (GetCheckerboardGeometry) use the ActualWidth and compute a geometry based on that value.

To fix the problem (without changing the code), we override the style and replace the:

<Path x:Name="PART_Checkerboard" Height="{TemplateBinding TrackHeight}" Fill="#cccccc" />

with

<Border Background="{DynamicResource CheckerBackgroundBrush}" BorderBrush="#cccccc" />

The CheckerBackgroundBrush is the one define in the shared library (used with the shared ColorComponentSlider for instance).

Thanks,

Julien Audran

Comments (1)

Answer - Posted 5 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Julien,

Thank you for letting us know.  We will return a default width of 200 when infinite width constraint is passed into the control's Measure logic.  This update will be in the next build.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.