Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6197341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:48:14+00:00 2026-05-24T03:48:14+00:00

I have several ComboBoxes in a DataForm and am trying to have it so

  • 0

I have several ComboBoxes in a DataForm and am trying to have it so that certain ComboBoxes are disabled until a particular ComboBox is selected. To this end, I created a notification property named CanEditCombo in the class that is bound to the DataContext and configured my ComboBoxes like so:

<ComboBox ... IsEnabled="{Binding CanEditCombo, Mode=OneWay}" />

The CanEditCombo is initially false, yet my ComboBoxes are editable when the DataForm first loads.

If I apply the same IsEnabled binding syntax to a TextBox in my DataForm it works as expected: disabled at first but enabled once CanEditCombo becomes true.

Here is an example chunk of XAML:

<toolkit:DataForm CurrentItem="{Binding NewProject, Mode=TwoWay}" x:Name="dfNewProject" CommandButtonsVisibility="None">
    <toolkit:DataForm.EditTemplate>
        <DataTemplate>
            <StackPanel>
                ...

                <toolkit:DataField>
                    <ComboBox ItemsSource="{Binding ProjectOptions, Mode=OneWay}"
                                SelectedValue="{Binding Options, Mode=TwoWay}"
                                DisplayMemberPath="Value"
                                SelectedValuePath="Key"
                                IsEnabled="{Binding CanEditCombo, Mode=OneWay}" />
                </toolkit:DataField>

                ...
            </StackPanel>
        </DataTemplate>
    </toolkit:DataForm.EditTemplate>
</toolkit:DataForm>

What’s more, even if I hard-code the ComboBox’s IsEnabled property to False in the markup above the ComboBox is still editable.

How do I go about having the ComboBox’s IsEnable property set via binding syntax when the ComboBox is in a DataForm?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:48:15+00:00Added an answer on May 24, 2026 at 3:48 am

    Not sure if you’ve discovered the answer to this yet, but there’s actually a really simple solution: set IsEnabled on the DataField rather than the ComboBox (or any other DataField nested control).

    <toolkit:DataField IsEnabled="{Binding CanEditCombo, Mode=OneWay}">
         <ComboBox ItemsSource="{Binding ProjectOptions, Mode=OneWay}"
                   SelectedValue="{Binding Options, Mode=TwoWay}"
                   DisplayMemberPath="Value"
                   SelectedValuePath="Key" />
    </toolkit:DataField>
    

    I’m not sure exactly what the DataField is doing internally but the IsEnabled property never gets accessed on a nested control.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have several comboboxes in my WPF application that don't change the selection
I have several databound comboboxes in my application and I notice that when i
I have a WinForms app that contains several comboboxes, numericupdown controls and checkboxes. I
I have a WPF user control that contains a DataGrid. This DG contains several
I have a data entry form that had several comboboxes on it. Each of
i have combobox (in fact, several of them), with elements that are added dynamicly.
I have several xml files that are formated this way: <ROOT> <OBJECT> <identity> <id>123</id>
I have a form in VB.Net with Autoscroll enabled and several ComboBoxes within it.
I have several textboxes where users can enter information into them. This can include
I have created a WinForms user control that is a set of five cascading

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.