Visual studio does not gray out properties with a ReadOnlyAttribute(true)

Posted by Fire-Dragon-DoL on Stack Overflow See other posts from Stack Overflow or by Fire-Dragon-DoL
Published on 2011-01-04T23:33:41Z Indexed on 2011/01/04 23:54 UTC
Read the original article Hit count: 370

I know it's stupid but visual studio (2010) doesn't gray out my properties tagged with ReadOnlyAttribute, I can't edit their values (if I try to do it, simply return to the previous value), but they aren't grayed out, I think it's really boring this when using the editor

Is there an option or an attribute that I'm forgetting?

Thanks for any help

Example 1:

    /// <summary>
    /// Inform if the LcdDisplay has been already initiated
    /// </summary>
    [Description("Inform if the LcdDisplay has been already initiated")]
    [DefaultValue(false)]
    [ReadOnly(true)]
    public bool Initialized { get; private set; }

Initialized is not grayed out

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2010