title: How to get Textbox background color in TestStack.White
body: <p>             
  I am using TestStack.White for automation testing of my WPF code. I am trying to get the background color of one of my textbox's. I tried to use NativeWindow to get the background color but it is not giving me the currect color code. Is there anything wrong in my code or Is there any other way I can do that?     </p>
  
  <p>Application application = null;
              Window window = null;
              application =
                  Application.Launch(
                      @"C:\New folder\WPFTRaining\Automation.TimelineUI\Automation.TimelineUI\bin\Debug\Automation.TimelineUI.exe");</p>
  
  <pre><code>        var windows = application.GetWindows();
          window = windows.Find(x =&gt; x.Id == "Form1");
  
  
          TextBox age = window.Get&lt;TextBox&gt;(SearchCriteria.ByAutomationId("TextBoxAGE"));
          age.Enter("90");
  
          Button saveButton = window.Get&lt;Button&gt;("SaveButton");
          saveButton.Click();
          Thread.Sleep(5000);
  
          var nativeWindow = new NativeWindow(new IntPtr(window.Get&lt;TextBox&gt;("TextBoxAGE").AutomationElement.Current.NativeWindowHandle));
          Assert.AreEqual(nativeWindow.BackgroundColor,"#FF0000");                 
  </code></pre>