This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
How is it possible to bind "IsEnabled" of one built in control to the value of another built in Control? We would like to disable some controls if a enum value is selected from a built in ComboBox. This is easy to accomplish with DataTemplates using Custom Controls but i would like to maintain the built in editors. The following is how we are handling this for custom controls, how can I do it with the built in controls? <ms:PropertyEditor PropertyName="TransitionSoftness" >
|
|
|
I'm not sure that you will be able to do this using the built-in editors: they are always enabled. (The grid substitutes a read-only "editor" for read-only properties.) You would instead need to create custom editors to hold the triggers. You could however host the built-in editors using a ContentControl with the appropriate ContentTemplate. Something along the lines of: <DataTemplate> Please note I have not tested this -- you will want to verify that the IsEnabled=false setting gets appropriately propagated down to the editor. You could also try using the PropertyEditor.Style property: I'm thinking you might be able to use triggers in the style to enable and disable things. But I'm not sure whether you'll be able to get at the bound data from those triggers. |
|