isTransparencyModeEnabled ignored for disabled PopupButton

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 3 years ago by Chien A.
Version: 16.1.0632
Environment: Windows 10 (64-bit)
Avatar

As per title, PopupButton.isTransparencyModeEnabled only works if the control is enabled. Once disabled, the borders etc render again.

If anyone else runs into the problem, a (bad) workaround till fixed is to override the Control Template, and in the trigger for isEnabled, add something like:

 

<Setter Property="BackgroundDisabled" TargetName="contentArea" Value="Transparent"/>

<Setter Property="BorderBrushDisabled" TargetName="contentArea" Value="Transparent"/>

<Setter Property="BackgroundDisabled" TargetName="PART_IndicatorArea" Value="Transparent"/>

<Setter Property="BorderBrushDisabled" TargetName="PART_IndicatorArea" Value="Transparent"/>

Comments (1)

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

Hi Chien,

Thanks, we'll get the default template updated for the next maintenance release.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 12 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.