CommunityToolkit icon indicating copy to clipboard operation
CommunityToolkit copied to clipboard

Migrating platform-specific components from MVVMLight

Open sasha-borodin opened this issue 1 year ago • 3 comments

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 avatar May 23 '23 20:05 sasha-borodin

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?

sasha-borodin avatar Jul 24 '23 20:07 sasha-borodin

Did you found any solution for this?

subareddy14 avatar Jan 21 '24 11:01 subareddy14