Ejemplo n.º 1
0
 public override FrameworkElement CreateElement(PropertyItem propertyItem)
 {
     propertyItem.AttachTooltipAdder(Owner);
     return(new NumericUpDown
     {
         IsReadOnly = propertyItem.IsReadOnly,
         Minimum = Minimum,
         Maximum = Maximum
     });
 }
Ejemplo n.º 2
0
 public static void AttachTooltipAdder(this PropertyItem propertyItem, PropertyResolverEx resolverEx)
 {
     propertyItem.Loaded += (sender, args) => { PropertyItemLoaded(sender, args, resolverEx, !string.IsNullOrEmpty(propertyItem.Description)); };
 }
 protected override IValueConverter GetConverter(PropertyItem propertyItem) => ResourceHelper.GetResourceInternal <IValueConverter>("Object2StringConverter");
 public override FrameworkElement CreateElement(PropertyItem propertyItem) => new System.Windows.Controls.TextBox
 {
     IsReadOnly = true
 };
 public override BindingMode GetBindingMode(PropertyItem propertyItem) => BindingMode.OneWay;