c#.net - data binding of complex types in wpf and xaml

13
Data Binding with ListBox in WPF Employee Type Example Mudasir Qazi -- [email protected] 1 17-Aug-14

Upload: mudasir-qazi

Post on 06-Aug-2015

224 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: C#.Net - Data Binding of complex types in WPF and XAML

1

Data Binding with ListBox in WPF

Employee Type Example

Mudasir Qazi -- [email protected]

Page 2: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 2

Step 1 – Create your type (class)

17-Aug-14

Page 3: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 3

Step 2 – Create List of your Typeand assign source to ListBox

17-Aug-14

Page 4: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 4

Step 3 – Design your Interface

List box here

17-Aug-14

Page 5: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 5

Step 4 – Bind ListBox with your type

17-Aug-14

Page 6: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 6

Step 5 – Bind your TextBox with List

17-Aug-14

Page 7: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 7

Step 6 – Coding (Add button)

17-Aug-14

Page 8: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 8

Step 6 – Coding (Delete button)

17-Aug-14

Page 9: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 9

Step 6 – Coding (Save button)

17-Aug-14

Page 10: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 10

Step 6 – Coding (Edit button)

17-Aug-14

Page 11: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 11

Step 7– Running (Item not selected)

17-Aug-14

Page 12: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 12

Step 8a – Running (Select an item)

17-Aug-14

Page 13: C#.Net - Data Binding of complex types in WPF and XAML

Mudasir Qazi -- [email protected] 13

Step 8b – Running (Select an item)

17-Aug-14