예제 #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());
     }
 }
예제 #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());
     }
 }
예제 #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
         };
     }
 }