Exemplo n.º 1
0
 /// <summary>
 /// Registers a popular property (shown first in the property grid).
 /// </summary>
 public static void AddPopularProperty(DependencyProperty p)
 {
     lock (popularProperties)
     {
         popularProperties.Add(p.GetFullName());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Hides the specified property (marks it as not browsable).
 /// </summary>
 public static void HideProperty(DependencyProperty p)
 {
     lock (hiddenProperties)
     {
         hiddenProperties.Add(p.GetFullName());
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Registers the value range for the property.
 /// </summary>
 public static void AddValueRange(DependencyProperty p, double min, double max)
 {
     lock (ranges) {
         ranges[p.GetFullName()] = new NumberRange()
         {
             Min = min, Max = max
         };
     }
 }