silverlightsilverlight-3.0controlsformatting

Enable or Disable multiple controls in Silverlight


What is considered the best way of enabling or disabling multiple controls in Silverlight at the same time (textbox, combobox, autocompletebox and the like)?

Is there a way to just disable the parent container?


Solution

  • You could use a ViewModel approach similar to the answer in StackOverflow 1545844

    By having a calculated IsEnabled property you can then bind the elements in the View which should be controled by this property.