/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

  1. using System;
  2. using System.ComponentModel;
  3. using Microsoft.VisualStudio.Package;
  4. using Microsoft.VisualStudio.Project;
  5. namespace Nemerle.VisualStudio.Project
  6. {
  7. /// <summary>
  8. /// Subclasses <see cref="DesignPropertyDescriptor"/> to allow for non-bolded text in the property grid.
  9. /// </summary>
  10. public class NemerleDesignPropertyDescriptor : DesignPropertyDescriptor
  11. {
  12. #region Constructors
  13. /// <summary>
  14. /// Initializes a new instance of the <see cref="WixDesignPropertyDescriptor"/> class.
  15. /// </summary>
  16. /// <param name="propertyDescriptor">The <see cref="PropertyDescriptor"/> to wrap.</param>
  17. public NemerleDesignPropertyDescriptor(PropertyDescriptor propertyDescriptor)
  18. : base(propertyDescriptor)
  19. {
  20. }
  21. #endregion
  22. #region Methods
  23. /// <summary>
  24. /// By returning false here, we're always going to show the property as non-bolded.
  25. /// </summary>
  26. /// <param name="component">The component to check.</param>
  27. /// <returns>Always returns false.</returns>
  28. public override bool ShouldSerializeValue(object component)
  29. {
  30. return false;
  31. }
  32. #endregion
  33. }
  34. }