Example #1
0
        public DoubleBoxValidationView()
        {
            this.application       = Application.Launch(Info.CreateStartInfo("DoubleBoxValidationWindow"));
            this.automation        = new UIA3Automation();
            this.Window            = this.application.GetMainWindow(this.automation);
            this.LoseFocusButton   = this.Window.FindButton("lose focus");
            this.ViewModelValueBox = this.Window.FindTextBox("ViewModelValue");

            this.StringFormatBox = this.Window.FindTextBox("StringFormat");
            this.CultureBox      = this.Window.FindComboBox("Culture");

            this.CanValueBeNullBox     = this.Window.FindCheckBox("CanValueBeNull");
            this.AllowLeadingWhiteBox  = this.Window.FindCheckBox("AllowLeadingWhite");
            this.AllowTrailingWhiteBox = this.Window.FindCheckBox("AllowTrailingWhite");
            this.AllowLeadingSignBox   = this.Window.FindCheckBox("AllowLeadingSign");
            this.AllowDecimalPointBox  = this.Window.FindCheckBox("AllowDecimalPoint");
            this.AllowThousandsBox     = this.Window.FindCheckBox("AllowThousands");
            this.AllowExponentBox      = this.Window.FindCheckBox("AllowExponent");

            this.MinBox          = this.Window.FindTextBox("Min");
            this.MaxBox          = this.Window.FindTextBox("Max");
            this.RegexPatternBox = this.Window.FindTextBox("RegexPattern");
            this.LostFocusValidateOnLostFocusBoxes = new TextBoxAndErrorBox(
                this.Window.FindTextBox("LostFocusValidateOnLostFocusBox"),
                this.Window.FindLabel("LostFocusValidateOnLostFocusBoxError"));

            this.LostFocusValidateOnPropertyChangedBoxes = new TextBoxAndErrorBox(
                this.Window.FindTextBox("LostFocusValidateOnPropertyChangedBox"),
                this.Window.FindLabel("LostFocusValidateOnPropertyChangedBoxError"));

            this.PropertyChangedValidateOnPropertyChangedBoxes = new TextBoxAndErrorBox(
                this.Window.FindTextBox("PropertyChangedValidateOnPropertyChangedBox"),
                this.Window.FindLabel("PropertyChangedValidateOnPropertyChangedBoxError"));
        }
Example #2
0
 public DoubleBoxView(string windowName)
 {
     this.application      = Application.Launch(Info.CreateStartInfo(windowName));
     this.automation       = new UIA3Automation();
     this.Window           = this.application.GetMainWindow(this.automation);
     this.AllowSpinnersBox = this.Window.FindCheckBox("AllowSpinnersBox");
     this.DigitsBox        = this.Window.FindTextBox("DigitsBox");
     this.VmValueBox       = this.Window.FindTextBox("VmValueBox");
     this.IncrementBox     = this.Window.FindTextBox("IncrementBox");
     this.MinBox           = this.Window.FindTextBox("MinBox");
     this.MaxBox           = this.Window.FindTextBox("MaxBox");
 }
 public FocusWindowTests()
 {
     this.application = Application.Launch(Info.CreateStartInfo("FocusWindow"));
     this.automation  = new UIA3Automation();
     this.Window      = this.application.GetMainWindow(this.automation);
 }
Example #4
0
 public virtual void OneTimeSetUp()
 {
     this.application = Application.AttachOrLaunch(Info.CreateStartInfo(this.WindowName));
     this.Window      = this.application.GetWindow(this.WindowName);
 }