Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Custom Bindings in MvvmCross
Search
Stuart Lodge
May 14, 2013
Technology
0
3.2k
Custom Bindings in MvvmCross
Stuart Lodge
May 14, 2013
Tweet
Share
More Decks by Stuart Lodge
See All by Stuart Lodge
Future Decoded - VisualStudio and Xamarin talk
cirrious
0
200
Data Bind Everything
cirrious
0
4.9k
MvvmCross - Presentation to BCS Edinburgh
cirrious
0
170
MobDevCon MvvmCross Workshop
cirrious
0
3.3k
Static Version of MvvmCross Evolve talk
cirrious
0
120
Jago?
cirrious
0
160
Presenters in MvvmCross
cirrious
1
32k
Saying SOLID with PCL
cirrious
0
3.4k
Using SQLite.Net In MvvmCross
cirrious
0
1.1k
Other Decks in Technology
See All in Technology
Cracking the Coding Interview 6th Edition
gdplabs
14
28k
ABWG2024採択者が語るエンジニアとしての自分自身の見つけ方〜発信して、つながって、世界を広げていく〜
maimyyym
1
190
AI Agent時代なのでAWSのLLMs.txtが欲しい!
watany
3
320
事業モメンタムを生み出すプロダクト開発
macchiitaka
0
100
データエンジニアリング領域におけるDuckDBのユースケース
chanyou0311
9
2.5k
JAWS FESTA 2024「バスロケ」GPS×サーバーレスの開発と運用の舞台裏/jawsfesta2024-bus-gps-serverless
ma2shita
3
270
Охота на косуль у древних
ashapiro
0
120
DeepSeekとは?何がいいの? - Databricksと学ぶDeepSeek! 〜これからのLLMに備えよ!〜
taka_aki
1
160
【内製開発Summit 2025】イオンスマートテクノロジーの内製化組織の作り方/In-house-development-summit-AST
aeonpeople
2
1k
AIエージェント元年@日本生成AIユーザ会
shukob
1
240
EDRの検知の仕組みと検知回避について
chayakonanaika
12
5.1k
Snowflake ML モデルを dbt データパイプラインに組み込む
estie
0
110
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
6
260
Testing 201, or: Great Expectations
jmmastey
42
7.2k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
21
2.5k
Scaling GitHub
holman
459
140k
Being A Developer After 40
akosma
89
590k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Embracing the Ebb and Flow
colly
84
4.6k
Navigating Team Friction
lara
183
15k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
380
Code Reviewing Like a Champion
maltzj
521
39k
Designing Experiences People Love
moore
140
23k
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.2k
Transcript
Custom Bindings
Data-Binding to ‘Controls’ MyControl MyValue MyValueChanged CreateBinding .For(view => view.MyValue)
.To(vm => vm.Name) As long as MyValueChanged is EventHandler, should just work!
Needs Custom 1 Non-standard EventHandler<T> MyControl MyValue MyValueChanged<T>
Needs Custom 2 Non-Standard Event Name MyControl Foo BarHappened
Custom PropertyBased Binding Create a PropertyInfoTargetBinding: Register it in Setup:
Needs Custom 3 No actual property MyControl GetFoo() SetFoo() BarHappened
Full Custom Binding Create a full custom TargetBinding: Register it
in Setup:
WARNING iOS UIKit Memory Management is Hard!
WARNING Watch out for event loops
Alternatives… You can always directly use: – FindViewById<T> or [Outlet]s
With: – ViewModel – ViewModel.PropertyChanged But: – The same warnings apply!
Sample Shown in only a couple of apps… https://github.com/slodge/MvvmCross- Tutorials/tree/master/CustomBinding
https://github.com/slodge/MvvmCross- Tutorials/tree/master/Sample%20-%20CirriousConference