Hiding Base Properties in PropertyGrid

Dotaz Hiding Base Properties in PropertyGrid

  • Tuesday, October 09, 2012 8:33 AM
     
      Has Code

    Hello friends,

    I would like to hide some properties in the PropertyGrid... I used the code below to hide the ToolTip property for example.

                [BrowsableAttribute(false)]
                public new object ToolTip
                {
                    get { return base.ToolTip; }
                    set { base.ToolTip = value; }
                }

    In VS2010, the ToolTip property is hidden after compiling the solution.

    However, when I opened my project in Expression Blend 4, the ToolTip still appears on the PropertyGrid.

    Any suggestion on how to resolve this issue? Thanks!