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
|
I apologize if this is too simple of a question to post, but I'm new to WPF, XAML, C#, Visual Studio, and Mindscape's Propery Grid. Can you post an example, C# code and XAML, of how to enable and disable a property based on the value of another property. For example, I have a class with an enumeration property Letter which can be either A, B, or C, and I have a string FirstName, and I want to enable FirstName only if Letter is set to B. Can this be done with Property Grid, can you show me the code? |
|
|
There is an example of this in the following thread: http://www.mindscape.co.nz/forums/Thread.aspx?ThreadID=1335 In your example of course you would bind IsEnabled to UnderlyingObject.Letter with the converter checking whether the value is B. Let us know if you need more info. |
|