Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tibet Binding #298

Closed
slodge opened this issue Jun 6, 2013 · 1 comment
Closed

Tibet Binding #298

slodge opened this issue Jun 6, 2013 · 1 comment
Labels
t/feature Feature request type

Comments

@slodge
Copy link
Contributor

slodge commented Jun 6, 2013

Json Binding was lovely

Swiss Binding is lovely

.... but Tibet Binding is even lovelier.


To start with I'm just capturing some use cases.

1. Method like converters

I want to be able to bind to:

    local:mvxBind="Text GenderName(Gender)"

This should translate to Path=Gender,Converter=GenderName

I want to be able to bind to:

    local:mvxBind="Text Format(Total, '{0:0.00}')"

This should translate to Path=Total,Converter=Format,ConverterParameter='{0:0.00}'

2. Simple Expressions

I want to be able to bind to:

    local:mvxBind="Enabled X<12"

This will need to translate to something that doesn't exist today!

We would need to support <, >, ==

This could be combined with valueconverters like:

    local:mvxBind="Enabled Sqrt(X)<25"

3. Simple Multibinding

I want to be able to bind to:

    local:mvxBind="Text FirstName + ' ' + LastName"

or:

    local:mvxBind="Enabled X < Y"

or:

    local:mvxBind="Enabled (X < Y) && (X > Z)"

or:

    local:mvxBind="Text GenderGreeting(Gender) + ' ' + FirstName + ' ' + LastName"

or:

    local:mvxBind="Text Length(FirstName + ' ' + LastName)"
@slodge
Copy link
Contributor Author

slodge commented Jul 18, 2013

documented in video and N+1 sample now... as well as in wiki entry... so closing

@slodge slodge closed this as completed Jul 18, 2013
martijn00 pushed a commit to martijn00/MvvmCross that referenced this issue Dec 8, 2016
Add RegisterAttribute for cleaner stack traces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/feature Feature request type
Development

No branches or pull requests

1 participant