Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top