Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MahApps 2.0 ToggleSwitch and Coded UI Missing InOn/IsChecked State Property #3770

Closed
SheriSteeves opened this issue Apr 3, 2020 · 9 comments
Labels
Milestone

Comments

@SheriSteeves
Copy link

This is a followup to #3690. The new ToggleSwitch now populates the AutomationId, Name and FriendlyName based on the names I have set in my XML but there is no property to test the state of the toggle.

image

The properties shown are the same when the thumb indicator is selected:
image

I tested this using a small test WPF app in VS2017 using the pre-release v2.0.0-alpha0748 and .NET 4.5.2.

@timunie
Copy link
Collaborator

timunie commented Apr 3, 2020

Hi @SheriSteeves

Many thanks for posting this issue. Can you provide your sample App via Github? It may be very useful for Analyzing the issue.

Happy coding
Tim

@SheriSteeves
Copy link
Author

I can do that, did you need a CodedUI sample project as well or just the sample app?

@timunie
Copy link
Collaborator

timunie commented Apr 6, 2020

Hi @SheriSteeves ,
if the sample App shows the error I think it should be enough. Many thanks by the way.

Happy coding,
Tim

@SheriSteeves
Copy link
Author

Hi @timunie,

I've uploaded the project here: https://github.com/SheriSteeves/MapApps-ToggleTest

@punker76
Copy link
Member

@SheriSteeves I found a possible bug for this and tried to fix it.

@SheriSteeves
Copy link
Author

SheriSteeves commented Apr 14, 2020

Wow, thanks for the quick turnaround! Will the alpha be updated via Nuget with this or should I download and build it my self? I've only access to v2.0.0-alpha0748 through the Visual Studio package manager right now.

@punker76
Copy link
Member

@SheriSteeves You can use the appveyor NuGet feed https://ci.appveyor.com/nuget/mahapps.metro

@SheriSteeves
Copy link
Author

The changes did not fix the Coded UI state issue. I saw the class change and was looking (hoping) for a ToggleState property but no luck. Still the same list of properties as before.

image

@punker76
Copy link
Member

@SheriSteeves I got this with VisualUIAVerifyNative. And I read about thet Coded UI is obsolete.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants