public PropertySetterTemplateInstance(
     IStyleable target,
     DirectPropertyBase <T> property,
     ITemplate template)
 {
     _target         = target;
     _directProperty = property;
     _template       = template;
 }
Ejemplo n.º 2
0
 public PropertySetterInstance(
     IStyleable target,
     DirectPropertyBase <T> property,
     T value)
 {
     _target         = target;
     _directProperty = property;
     _value          = value;
 }
 public PropertySetterLazyInstance(
     IStyleable target,
     DirectPropertyBase <T> property,
     Func <T> valueFactory)
 {
     _target         = target;
     _directProperty = property;
     _valueFactory   = valueFactory;
 }
Ejemplo n.º 4
0
 public DirectBindingSubscription(
     AvaloniaObject owner,
     DirectPropertyBase <T> property,
     IObservable <BindingValue <T> > source)
 {
     _owner    = owner;
     _property = property;
     _owner._directBindings !.Add(this);
     _subscription = source.Subscribe(this);
 }
Ejemplo n.º 5
0
 public PropertySetterBindingInstance(
     IStyleable target,
     DirectPropertyBase <T> property,
     IBinding binding)
 {
     _target         = target;
     _directProperty = property;
     _binding        = binding.Initiate(_target, property);
     _inner          = new Inner(this);
 }