Miyu.MvxPlugins.TextSelection

This package contains the 'TextSelection' plugin for MvvmCross


Keywords
mvvm, mvvmcross, cross, xamarin, ios, android, monodroid, monotouch, xamarin.android, plugin, xamarin.ios
License
MIT
Install
Install-Package Miyu.MvxPlugins.TextSelection -Version 1.0.2

Documentation

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);