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
190
Data Bind Everything
cirrious
0
4.6k
MvvmCross - Presentation to BCS Edinburgh
cirrious
0
160
MobDevCon MvvmCross Workshop
cirrious
0
3.2k
Static Version of MvvmCross Evolve talk
cirrious
0
100
Jago?
cirrious
0
130
Presenters in MvvmCross
cirrious
1
31k
Saying SOLID with PCL
cirrious
0
3.3k
Using SQLite.Net In MvvmCross
cirrious
0
1.1k
Other Decks in Technology
See All in Technology
プロデザ! BY リクルート vol.18_リクルートのリサーチ実践組織「リサーチブーストコミュニティ」
recruitengineers
PRO
3
260
ChatworkのSRE部って実は 半分くらいPlatform Engineering部かもしれない
saramune
0
150
ServiceNow Knowledge Learning Rise up
manarobot
0
190
20240416_devopsdaystokyo
kzkmaeda
1
210
Next'24 事例セッションの紹介とクラウド資格を活用したキャリア形成について語りMuscle
yasumuusan
1
420
少数チームで挑む: SwiftUI, TCA, KMPを用いた 新規動画配信アプリ 「ABEMA Live」の開発について
tomu28
0
610
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
200
DevOpsDays History and my DevOps story
kawaguti
PRO
9
2.3k
ここが嬉しいABAC ここが辛いよABAC #再解説+補足編
masahirokawahara
1
260
コンテナセキュリティの基本と脅威への対策
kyohmizu
3
740
KubeCon EU 2024 Recap “Kubernetes Policy Time Machine: Where to Next?”
ryysud
0
190
Google Cloud Next '24でブログを10本書いた方法と勉強会を沸かせた方法
yasumuusan
0
250
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
356
22k
Fantastic passwords and where to find them - at NoRuKo
philnash
36
2.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
658
120k
The Power of CSS Pseudo Elements
geoffreycrofte
59
5k
No one is an island. Learnings from fostering a developers community.
thoeni
15
2.1k
Being A Developer After 40
akosma
56
580k
Principles of Awesome APIs and How to Build Them.
keavy
120
16k
Agile that works and the tools we love
rasmusluckow
324
20k
Raft: Consensus for Rubyists
vanstee
132
6.3k
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.4k
Navigating Team Friction
lara
177
13k
The MySQL Ecosystem @ GitHub 2015
samlambert
242
12k
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