MicrosoftDocs / CommunityToolkit

The Official Docs for the Community Toolkits
https://learn.microsoft.com/dotnet/communitytoolkit
Creative Commons Attribution 4.0 International
114 stars 93 forks source link

Migrating platform-specific components from MVVMLight #276

Open sasha-borodin opened 1 year ago

sasha-borodin commented 1 year ago

I am attempting to migrate a Xamarin native (Xamarin.iOS and Xamarin.Android) solution from MVVMLight to CommunityToolkit.Mvvm.

I have pored over documentation on this topic here. The docs state that

there are no replacements for platform-specific components

My question (and request for added documentation) is: what are the options for addressing this gap in functionality? Specifically, I am looking for a way to programmatically bind observable properties to native control instances (previously provided by the Binding, BindingMode, etc. classes and extension methods in MMMVLight).

  1. Are there any projects that attempt to fill this gap?
  2. Is this functionality relatively trivial to implement from scratch?
  3. Or is what I'm trying to do (use CommunityToolkit.Mvvm with a Xamarin native codebase) inherently misguided?

Thanks so much for any guidance, and consideration to augment the docs on this topic!

sasha-borodin commented 1 year ago

Following up to see if I can get any help or hints. How are folks approaching the task of binding native control instances (ex. iOS UITextField or Android EditText) to observable properties on a VM class instance?

subareddy14 commented 10 months ago

Did you found any solution for this?

andreipro1002 commented 6 months ago

Hello @sasha-borodin , @subareddy14 did you find a solution to this? I'm having the same issue.