MvvmCross text selection plugin
This MvvmCross plugin provides tow-way data binding for cursor position in UITextField, UITextView or EditText.
Usage
Android
MvxEditText
has Selection
that is binding for cursor position.
<mvvmcross.plugins.textselection.droid.MvxEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
local:MvxBind="Text Text; Selection Selection" />
iOS
UITextField
and UITextView
have Selection
that is binding for cursor position.
You can use extension method BindSelection()
.
set.Bind(textField).For(v => v.BindSelection()).To(vm => vm.Selection);