Exemple #1
0
 public virtual FrameworkElement GetEditElement(DesignablePropertyDescriptor d)
 {
     if (_editElements.ContainsKey(d))
     {
         return(_editElements[d]);
     }
     return(null);
 }
 /// <summary>
 /// We know we're just for softness!
 /// </summary>
 /// <param name="instance"></param>
 /// <param name="desc"></param>
 public void Initialize(DamonPayne.AGT.Design.IDesignableControl instance, DamonPayne.AGT.Design.Types.DesignablePropertyDescriptor desc)
 {
     if (null != instance)
     {
         Binding b = new Binding("Softness");
         b.Converter = desc.Converter;
         b.Mode      = BindingMode.TwoWay;
         b.Source    = instance;
         SetBinding(SoftnessVisualizer.SoftnessProperty, b);
     }
 }
Exemple #3
0
 public virtual void SetEditElement(DesignablePropertyDescriptor d, FrameworkElement fe)
 {
     _editElements[d] = fe;
     _editElementsReverseLookup[fe] = d;
 }