isTransparencyModeEnabled ignored for disabled PopupButton

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 9 years ago by Chien A.
Version: 16.1.0632
Platform: .NET 4.5
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 9 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 (v25.1.0) 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.