/VsIntegration/Nemerle.VisualStudio/Project/NemerleDesignPropertyDescriptor.cs
http://github.com/xxVisorxx/nemerle · C# · 40 lines · 22 code · 6 blank · 12 comment · 0 complexity · 8dd5f199d6d60f77a5bcab0f7bf2d616 MD5 · raw file
- using System;
- using System.ComponentModel;
- using Microsoft.VisualStudio.Package;
- using Microsoft.VisualStudio.Project;
-
- namespace Nemerle.VisualStudio.Project
- {
- /// <summary>
- /// Subclasses <see cref="DesignPropertyDescriptor"/> to allow for non-bolded text in the property grid.
- /// </summary>
- public class NemerleDesignPropertyDescriptor : DesignPropertyDescriptor
- {
- #region Constructors
-
- /// <summary>
- /// Initializes a new instance of the <see cref="WixDesignPropertyDescriptor"/> class.
- /// </summary>
- /// <param name="propertyDescriptor">The <see cref="PropertyDescriptor"/> to wrap.</param>
- public NemerleDesignPropertyDescriptor(PropertyDescriptor propertyDescriptor)
- : base(propertyDescriptor)
- {
- }
-
- #endregion
-
- #region Methods
-
- /// <summary>
- /// By returning false here, we're always going to show the property as non-bolded.
- /// </summary>
- /// <param name="component">The component to check.</param>
- /// <returns>Always returns false.</returns>
- public override bool ShouldSerializeValue(object component)
- {
- return false;
- }
-
- #endregion
- }
- }