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

MvxNativeValueConverter and MvxFormsValueConverter for MvvmCross.Forms #3011

Closed

Conversation

MartinZikmund
Copy link
Contributor

@MartinZikmund MartinZikmund commented Jul 13, 2018

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Feature

⤵️ What is the current behavior?

Currently it is not easy to reuse existing MvxValueConverters in MvvmCross.Forms projects, as there is no helper class analogous to UWP's MvxNativeValueConverter that would act as an adapter between MvvmCross' IMvxValueConverter and Xamarin.Forms' IValueConverter.

🆕 What is the new behavior (if this is a feature change)?

MvxNativeValueConverter is an adapter that allows developers reuse existing MvvmCross value converters in their MvvmCross.Forms projects.

MvxFormsValueConverter is just a convenience class that specifies the IValueConverter. This can act as the base class for MvvmCross.Forms-only value converters.

💥 Does this PR introduce a breaking change?

No

🐛 Recommendations for testing

x

📝 Links to relevant issues/docs

x

🤔 Checklist before submitting

@MartinZikmund
Copy link
Contributor Author

I am not sure how to make the code pass StyleCop - there are other files in the codebase containing multiple classes of the same name, do I have to do something special to allow this?

@MartinZikmund MartinZikmund changed the title MvxNativeValueConverter and MvxFormsValueConverter MvxNativeValueConverter and MvxFormsValueConverter for Xamarin.Forms Jul 13, 2018
@MartinZikmund MartinZikmund changed the title MvxNativeValueConverter and MvxFormsValueConverter for Xamarin.Forms MvxNativeValueConverter and MvxFormsValueConverter for MvvmCross.Forms Jul 13, 2018
@martijn00 martijn00 added this to the 6.2.0 milestone Jul 16, 2018
@nickrandolph
Copy link
Contributor

@MartinZikmund can we have at least one example of using this in the playground forms sample

@nickrandolph
Copy link
Contributor

@MartinZikmund ping? I'm keen to get this merged. Can you help with providing an example and seeing if you can resolve the build failure (you might need to rebase)

@MartinZikmund
Copy link
Contributor Author

@nickrandolph Oh sorry, missed this. I will do this first thing tomorrow :-) !

@MartinZikmund
Copy link
Contributor Author

@nickrandolph this PR auto-closed when I had to do revert of bad commit, so I created a new one - #3047 . Very sorry about the complication.

@nickrandolph
Copy link
Contributor

hmmm if the bad commit was just due to pushing a rebase, you should have been able to just rebase again and then force push to clean up (just for future ref)

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

Successfully merging this pull request may close these issues.

None yet

3 participants