Esempio n. 1
0
 public FormDropDownList(Field field, FormLabel associatedLabel)
 {
     this.label  = associatedLabel;
     this.field  = field;
     this.Margin = new Thickness(0, 0, 0, 10);
     this.Behaviors.Add(new FormEntryBehavior.DropDownListBehavior());
 }
Esempio n. 2
0
        public FormBoolean(Field field, FormLabel associatedLabel)
        {
            this.label = associatedLabel;
            this.field = field;

            this.Margin = new Thickness(0, 0, 0, 10);
            this.Behaviors.Add(new FormEntryBehavior.ToggleBehavior());
        }
Esempio n. 3
0
        public FormEntry(Field field, FormLabel associatedLabel)
        {
            this.label = associatedLabel;
            this.field = field;

            // Style modifications
            this.Margin = new Thickness(0, 0, 0, 10);

            // Assign a validation behavioour
            this.Behaviors.Add(new FormEntryBehavior.TextBehavior());
            this.Unfocused += (s, a) => { evaluateValidity(); };
        }
Esempio n. 4
0
 public FormDate(Field field, FormLabel associatedLabel)
 {
     this.label  = associatedLabel;
     this.field  = field;
     this.Margin = new Thickness(0, 0, 0, 10);
 }