Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Re: enabling the Combobox with respect to checkbox

  •  04-30-2008, 6:43 AM

    Re: enabling the Combobox with respect to checkbox

    I've got something similar I've had to solve, it might help you to find a solution.

    I have a row with a checkbox that has to be enabled or disabled based on a boolean value in the row. So I made a datatrigger. Here's my code:

     

    <Style TargetType="{x:Type xcdg:DataRow}">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding Path=HasAllocatedAsset}"
                                   Value="True">
                        <Setter Property="IsEnabled">
                            <Setter.Value>
                                False
                            </Setter.Value>
                        </Setter>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
     

    I'm setting the Row to be IsEnabled = False, when an "HasAllocatedAsset" is True.

     

    For your application, there should be a way to target your Setter (TargetName) at a certain object. If you manage to solve your problem, do show me your solution.

     

    Good Luck. 

    Filed under: ,
View Complete Thread
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.