Allow simpler language binding expressions in Droid #63

Closed
slodge opened this Issue Nov 27, 2012 · 3 comments

Comments

Projects
None yet
1 participant
Contributor

slodge commented Nov 27, 2012

Currently language expressions are fairly verbose:

<TextView
  android:text="hello"
  style="@style/AboutPageTitle"
  local:MvxBind="{'Text':{'Path':'TextSource','Converter':'Language','ConverterParameter':'SQLBitsXApp'}}" />

With some trickery This could be shortened to something like:

<TextView
  android:text="hello"
  style="@style/AboutPageTitle"
  local:MvxLang="SQLBitsXApp" />

Need to think about this...

Contributor

slodge commented Jan 21, 2013

Closed :) Implemented :)

Swiss binding

slodge closed this Jan 21, 2013

Contributor

slodge commented Feb 22, 2013

Not sure this is closed - swiss binding does not solve everything here

slodge reopened this Feb 22, 2013

Contributor

slodge commented Mar 10, 2013

Checked in to v3

This:

local:MvxBind="{'Text':{'Path':'TextSource','Converter':'Language','ConverterParameter':'SQLBitsXApp'}}" 

becomes:

local:MvxLang="Text SQLBitsXApp" 

with optional 'Swiss' parameters to specify other TextSources or other names for the language ValueConverter

slodge closed this Mar 10, 2013

@kjeremy kjeremy pushed a commit to kjeremy/MvvmCross that referenced this issue Dec 11, 2016

@martijn00 martijn00 Merge pull request #63 from andyci/CacheIssue
Fix cache issue
849e2e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment