Method SetBoundValue
- Namespace
- DocWright.Dom.ContentControls
- Assembly
- DocWright.Dom.dll
SetBoundValue(ContentControl, string)
Writes a value to a bound control, updating both the control's content and the custom XML node it is bound to.
public bool SetBoundValue(ContentControl control, string value)
Parameters
controlContentControlThe control, which must carry a data binding.
valuestringThe new value.
Returns
- bool
True when the bound node was found and both sides were updated.
Exceptions
- ArgumentNullException
controlorvalueis null.- ContentControlBindingException
The control has no binding, the XPath is outside the supported subset, or the store item cannot be found.