Extended WPF toolkit DoubleUpDown IsEnabled trigger changing background not working

StackOverflow https://stackoverflow.com/questions/9117527

  •  22-04-2021
  •  | 
  •  

Вопрос

I am using an extended WPF control, which is DoubleUpDown. For this control a have defined a style and within it a trigger for IsEnabled property.

<Style TargetType="{x:Type extToolkit:DoubleUpDown}">
    <Style.Triggers>
        <Trigger Property="IsEnabled" Value="False">
            <Setter Property="Background" Value="Pink"/>
        </Trigger>
    </Style.Triggers>
</Style>

For IsEnabled property I am using a binding from the ViewModel.

The problem is that when the control IsEnabled property is False the background is not all filled with pink, the pink color appears only between Up and Down buttons (See image).

How can I resolv this in order to fill all the control with the new pink color? Thank you for your help.

Это было полезно?

Решение

Try using the latest source code. Make sure to compile the project located under the Main folder.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top