Esempio n. 1
0
 public MVVMBinding(
     MVVMBindingMode mode = MVVMBindingMode.Default,
     MVVMUpdateSourceTrigger updateSourceTrigger = MVVMUpdateSourceTrigger.Default,
     string path  = null,
     object value = null,
     MVVMRelativeSource relativeSource = null,
     string elementName         = null,
     MVVMControlBase element    = null,
     bool validatesOnExceptions = false
     )
 {
     if (element != null)
     {
         Type = MVVMBindingType.Element;
     }
     else if (elementName != null)
     {
         Type = MVVMBindingType.ElementName;
     }
     else if (relativeSource != null)
     {
         Type = MVVMBindingType.RelativeSource;
     }
     else if (value != null)
     {
         Type = MVVMBindingType.Value;
     }
     else
     {
         Type = MVVMBindingType.Path;
     }
     _Mode = mode;
     _UpdateSourceTrigger = updateSourceTrigger;
     Path                  = path;
     TargetValue           = value;
     ElementName           = elementName;
     Element               = element;
     ValidatesOnExceptions = validatesOnExceptions;
 }
Esempio n. 2
0
 public MVVMBinding(MVVMRelativeSource relativeSource, string path, MVVMBindingMode mode, MVVMUpdateSourceTrigger updateSourceTrigger)
     : this(relativeSource, path, mode)
 {
     _UpdateSourceTrigger = updateSourceTrigger;
 }
Esempio n. 3
0
 public MVVMBinding(MVVMRelativeSource relativeSource, string path, MVVMBindingMode mode) : this(relativeSource, path)
 {
     _Mode = mode;
 }
Esempio n. 4
0
 public MVVMBinding(MVVMRelativeSource relativeSource, string path) : this(relativeSource) {
     Path = path;
 }
Esempio n. 5
0
 public MVVMBinding(MVVMRelativeSource relativeSource, MVVMUpdateSourceTrigger updateSourceTrigger) : this(relativeSource) {
     _UpdateSourceTrigger = updateSourceTrigger;
 }
Esempio n. 6
0
 public MVVMBinding(MVVMRelativeSource relativeSource, MVVMBindingMode mode) : this(relativeSource) {
     _Mode = mode;
 }
Esempio n. 7
0
 public MVVMBinding(MVVMRelativeSource relativeSource)
 {
     RelativeSource = relativeSource;
     Type           = MVVMBindingType.RelativeSource;
 }