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

Add some missing binding extension properties #2313

Merged
merged 2 commits into from Oct 31, 2017

Conversation

martijn00
Copy link
Contributor

@martijn00 martijn00 commented Oct 29, 2017

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

Bug fixes

⤵️ What is the current behavior?

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

💥 Does this PR introduce a breaking change?

🐛 Recommendations for testing

📝 Links to relevant issues/docs

Some fixes for #2299

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated (docs style guide)
  • Nuspec files were updated (when applicable)
  • Rebased onto current develop

@martijn00 martijn00 added this to the 5.4.0 milestone Oct 29, 2017
@Cheesebaron
Copy link
Member

I'd love to see a UnitTest testing the Markup Extension.

@jonathanpeppers has some mocks for Forms here that could be used for setting up the tests: https://github.com/jonathanpeppers/Xamarin.Forms.Mocks

Copy link
Member

@Cheesebaron Cheesebaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make a MvxBaseBindExtension with the common parts for these two extensions, such that we don't duplicate code?


public object ProvideValue(IServiceProvider serviceProvider)
{
IProvideValueTarget target = serviceProvider.GetService(typeof(IProvideValueTarget)) as IProvideValueTarget;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks strange to me. You are requesting a IProvideValueTarget then casting it to IProvideValueTarget right after. Could probably be done a lot cleaner.

}
else
{
Mvx.Trace(MvxTraceLevel.Diagnostic, "Cannot only use MvxBind on a bindable property");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mvx.Trace is obsolete

}
else
{
Mvx.Trace(MvxTraceLevel.Diagnostic, "Cannot only use MvxBind on a bindable property");
Mvx.Trace(MvxTraceLevel.Diagnostic, "Cannot only use MvxLang on a bindable property");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mvx trace is obsolete

@Cheesebaron Cheesebaron merged commit a58902e into MvvmCross:develop Oct 31, 2017
@Cheesebaron Cheesebaron added the p/forms Xamarin.Forms platform label Oct 31, 2017
@martijn00 martijn00 deleted the forms-bindings branch December 11, 2017 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p/forms Xamarin.Forms platform
Development

Successfully merging this pull request may close these issues.

None yet

3 participants