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
Data-Binding
Search
Stuart Lodge
May 14, 2013
Technology
1
300
Data-Binding
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
150
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
Amazon SageMaker Unified Studio(Preview)、Lakehouse と Amazon S3 Tables
ishikawa_satoru
0
150
複雑性の高いオブジェクト編集に向き合う: プラガブルなReactフォーム設計
righttouch
PRO
0
110
KubeCon NA 2024 Recap / Running WebAssembly (Wasm) Workloads Side-by-Side with Container Workloads
z63d
1
240
PHPからGoへのマイグレーション for DMMアフィリエイト
yabakokobayashi
1
160
Wantedly での Datadog 活用事例
bgpat
1
410
サイバー攻撃を想定したセキュリティガイドライン 策定とASM及びCNAPPの活用方法
syoshie
3
1.2k
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
100
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
320
Postman と API セキュリティ / Postman and API Security
yokawasa
0
200
Snykで始めるセキュリティ担当者とSREと開発者が楽になる脆弱性対応 / Getting started with Snyk Vulnerability Response
yamaguchitk333
2
180
社内イベント管理システムを1週間でAKSからACAに移行した話し
shingo_kawahara
0
180
組織に自動テストを書く文化を根付かせる戦略(2024冬版) / Building Automated Test Culture 2024 Winter Edition
twada
PRO
12
3.4k
Featured
See All Featured
Being A Developer After 40
akosma
87
590k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Code Reviewing Like a Champion
maltzj
520
39k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
A Philosophy of Restraint
colly
203
16k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
Optimizing for Happiness
mojombo
376
70k
Scaling GitHub
holman
458
140k
KATA
mclloyd
29
14k
Mobile First: as difficult as doing things right
swwweet
222
9k
What's in a price? How to price your products and services
michaelherold
243
12k
Transcript
Data Binding
INotifyPropertyChanged
Typical ViewModel Property
One Way Binding PersonViewModel FirstName LastName DateOfBirth First Name Jon
Last Name Doe Date of birth 12/07/1989
UI Syntax
Two Way Binding PersonViewModel FirstName LastName DateOfBirth First Name Jon
Last Name Doe Date of birth 12/07/1989
UI Syntax
Value Conversion PersonViewModel FirstName LastName DateOfBirth First Name Jon Last
Name Doe Age 24 “Age” Conversion
IMvxValueConverter
AgeValueConverter
UI Syntax
UI Syntax
Binding Actions PersonViewModel FirstName LastName DateOfBirth First Name Jon Last
Name Doe Date of birth 12/07/1989 AddCommand
ICommand
Typical ViewModel Command
UI Syntax
Collections PeopleViewModel Hackers List<PersonViewModel> Greg Jon Daniel Cool Hackers Jon
@redth Greg @gshackles Daniel @dsplaisted Tomasz Tomasz @cheesebar
INotifyCollectionChanged
ObservableCollection
ViewModel Collection Property
UI Syntax
UI Syntax
UI Syntax
UI Syntax
Data-Binding to Sub-Objects • Works using normal . and []
chaining: • obeys INotifyPropertyChanged at every step
Samples DataBinding: https://github.com/slodge/MvvmCross-Tutorials/tree/master/TipCalc Collections: https://github.com/slodge/MvvmCross- Tutorials/tree/master/Working%20With%20Collections ValueConverters: https://github.com/slodge/MvvmCross- Tutorials/tree/master/ValueConversion