Represents the base class for all expressions. Expressions represent a value, and optionally a value that can change after being read (in which case, it provides a mechanism to subscribe for changes)
Esempio n. 1
0
        private static Binder BindValue(Element element, string property, Expression expression)
        {
            Debug.Assert((element.TagName.ToLowerCase() == "input") ||
                         (element.TagName.ToLowerCase() == "textarea") ||
                         (element.TagName.ToLowerCase() == "select"),
                         "Value can only be bound on user input elements.");

            return new ValueBinder((InputElement)element, expression);
        }
Esempio n. 2
0
 private static Binder BindVisibility(Element element, string property, Expression expression)
 {
     return new VisibilityBinder(element, property, expression);
 }
Esempio n. 3
0
 private static Binder BindContent(Element element, string property, Expression expression)
 {
     property = (property == "text") ? "textContent" : "innerHTML";
     return new ContentBinder(element, property, expression);
 }