-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow bind Enum values in IAutoInitialize ViewModels #1916
Conversation
…lue during conversion
replaces #1890 |
@candidodmv can you please rebase your PR |
Currently if anyone try pass through a enum value as raw type(value or name) within INavigationParameters get an error of conversion, to solve this problem was included the conditions above.
I'm considering to use only the enum name because if the value is being considered during the conversion can cause side effect because the value as number can be refered to a lot of things in navigation parameters not the enum type searched.
@dansiegel could you check if the rabase is it right? |
internal class MockParameters : ParametersBase | ||
{ | ||
public MockParameters() : base() { } | ||
public MockParameters(string query) : base(query) { } | ||
} | ||
|
||
internal enum MockEnum | ||
{ | ||
None = 0, | ||
Foo = 1, | ||
Bar = 2, | ||
Fizz = 3 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
each type should be in its own file. Also mocks belong under the Mocks namespace
@candidodmv sorry it took a while for me to get back to you on this. If you can make this minor change then we should be good. Also need to see why the build failed. |
closing this PR as I have rebased your branch and fixed the tests. This will get merged via PR #1953 |
Thanks @dansiegel ! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
## Description of Change
Currently if anyone try pass through a enum value as raw type(value or name) within INavigationParameters get an error of conversion, to solve this problem was included more conversion conditions.
Bugs Fixed
API Changes
N/A
PR Checklist