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.3k
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
220
Data Bind Everything
cirrious
0
5k
MvvmCross - Presentation to BCS Edinburgh
cirrious
0
200
MobDevCon MvvmCross Workshop
cirrious
0
3.4k
Static Version of MvvmCross Evolve talk
cirrious
0
150
Jago?
cirrious
0
190
Presenters in MvvmCross
cirrious
1
32k
Saying SOLID with PCL
cirrious
0
3.5k
Using SQLite.Net In MvvmCross
cirrious
0
1.1k
Other Decks in Technology
See All in Technology
サラリーマンソフトウェアエンジニアのキャリア
yuheinakasaka
38
18k
人工知能のための哲学塾 ニューロフィロソフィ篇 第零夜 「ニューロフィロソフィとは何か?」
miyayou
0
440
CQRS/ESになぜアクターモデルが必要なのか
j5ik2o
0
930
Data Hubグループ 紹介資料
sansan33
PRO
0
2.6k
「駆動」って言葉、なんかカッコイイ_Mitz
comucal
PRO
0
140
AI駆動開発ライフサイクル(AI-DLC)の始め方
ryansbcho79
0
330
歴史から学ぶ、Goのメモリ管理基礎
logica0419
14
2.7k
Java 25に至る道
skrb
3
210
ソフトとハード両方いけるデータ人材の育て方
waiwai2111
0
140
わが10年の叡智をぶつけたカオスなクラウドインフラが、なくなるということ。
sogaoh
PRO
1
510
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
国井さんにPurview の話を聞く会
sophiakunii
1
370
Featured
See All Featured
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
0
430
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
83
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
40
Rebuilding a faster, lazier Slack
samanthasiow
85
9.3k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Music & Morning Musume
bryan
46
7k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.8k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.8k
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