Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: Some plugins' combiners and converters still not being registered automatically #4866

@Digifais

Description

@Digifais

Description

When migrating a project from Xamarin.Android to .NET for Android, I was running into the problem where some plugins (Visibility and Color) their converters were not being registered right. Upon searching for a bit, I stumbled upon #4739 and on #4798 afterwards, where in the latter it's mentioned that this should be fixed. Running MvvmCross 9.2.0, this still isn't fixed and I still have to manually load plugins as described in #4739.

Steps to Reproduce

  1. Create an Android app with MvvmCross 9.2.0
  2. Install the Visibility and/or Color plugin
  3. Add some bindings using the converters
  4. Doesn't work

Link to public reproduction project repository

No response

Version with bug

9.2.0

Is this a regression from previous behavior?

Yes, this used to work in a previous version

Last version that worked well

8.0.2 (that I know of before migration)

Affected platforms

Android

Affected platform versions

Android 14

Did you find any workaround?

Manually loading the plugins in your Setup.cs

public override void LoadPlugins(IMvxPluginManager pluginManager)
{
    base.LoadPlugins(pluginManager);

    pluginManager.EnsurePluginLoaded<MvvmCross.Plugin.Visibility.Platforms.Android.Plugin>();
    pluginManager.EnsurePluginLoaded<MvvmCross.Plugin.Color.Platforms.Android.Plugin>();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    t/bugBug typeup-for-grabsIssues up for grabs by anyone

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions