locked
Writing extension for WPF custom control not work about Coded UI RRS feed

  • Question

  • Hi

    I saw the sample about how to Writing extension for WPF custom control from Gautam Goenka's blog.

    Here is the sample.

    After I build and run the UI test, I got a error. like this:

    GetProperty of "Maximum" is not supported on control type: Spinner

    Simple code is:

            public void VerifyNumericUpDownProperties(double maximum, double minimum, double change, double value, bool readOnly)
            {
                WpfNumericUpDown uINumericUpDown1Spinner = this.UINumericUpDownSampleWindow.UIControlGroup.UINumericUpDown1Spinner;
                Assert.AreEqual(maximum, uINumericUpDown1Spinner.Maximum);
                Assert.AreEqual(minimum, uINumericUpDown1Spinner.Minimum);
                Assert.AreEqual(change, uINumericUpDown1Spinner.Change);
                Assert.AreEqual(value, uINumericUpDown1Spinner.Value);
                Assert.AreEqual(readOnly, uINumericUpDown1Spinner.ReadOnly);
            }
    How do I resolve it?
    Wednesday, November 6, 2013 10:09 AM

Answers

All replies

  • Hi songwq,

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, November 8, 2013 7:04 AM
  • Hi there,

    Try re-adding reference to Extension/Application under Solution/Projects in Reference Manager-Test window.

    Regards,

    Jenny

    Wednesday, November 27, 2013 9:39 AM