WPF Data Binding Tomer Shamam Smart Client Team Leader Sela Group

Slides:



Advertisements
Similar presentations
Language Integrated Query (LINQ) Martin Parry Developer & Platform Group Microsoft Ltd
Advertisements

Microsoft Office ® Access 2007 Microsoft Office Access 2007: Introduzione allo sviluppo Fabio Santini.NET Developer Evangelist Microsoft Italy.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Web Sites Testing with Visual Studio Team System Shai Raiten Sela Group
The Microsoft Technical Roadshow 2006 Welcome and Introduction Kevin McDaniel Developer & Platform Evangelism Group Microsoft Ltd
Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Mike Henderlight Title: Program Manager.
Visual Studio 2005 C# IDE Enhancements Luca Bolognese C# Program Manager Microsoft Corporation.
Building Composite Applications with WPF Tomer Shamam Smart Client Manager Sela Group
DEV450 Visual Studio: Best Practices For Debugging Managed Applications Habib Heydarian Scott Nonnenberg Program Managers Microsoft Corporation.
If you have SQL Server 2005, you get all the features below plus the following: If you have SQL Server 2000, you get all the features below plus.
Windows Forms in Visual Studio 2005: An Overview Saurabh Pant Program Manager Microsoft Corporation.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
1 Developing Rules Driven Workflows in Windows Workflow Foundation Jurgen Willis COM318 Program Manager Microsoft Corporation.
Test Driven Development using Visual Studio Team System Ariel Gur-Arieh VP R&D – MCD Software Solutions
Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft DEV201 #auteched #dev201.
READING, WRITING, BINDING, VALIDATING AND VISUALISING YOUR DATA Business value with Silverlight.
Copyright © 2014, 2015 William R. Vaughn All rights reserved William R. Vaughn.
Doing Something Useful with Enterprise Library 3.0 Benjamin Day Level: Intermediate.
Target: dependency property Source: any public property CLR and WPF properties Target: dependency property Source: any public property CLR and WPF properties.
Using the Actions Pane, Host Controls, and Smart Tags
Last lecture data binding, binding object markup extension bind to any prop with INotifyPropertyChanged, target must be dep. prop. bind to obj... so no.
DEV397 Windows Forms Databinding Mike Henderlight Program Manager Windows Forms Microsoft Corporation.
Rudi Grobler Session Code: WUX205.
Adam Calderon – C# MVP Application Development Practice Lead Interknowlogy.
OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich Eventing for Custom XML Tristan Davis Program Manager Microsoft.
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
The Microsoft Technical Roadshow 2007 Rich Client Development in XAML Mark Johnston Developer & Platform Group Microsoft Ltd
Data Binding in Depth DEV 419 Level 400 Eyal Vardi CEO Experts4D Microsoft VSTO MVP blog:
DEV322 Unit Testing Best Practices With Visual Studio 2005 Team System Mark Seemann Senior Consultant Microsoft Consulting Services.
Presentation advances in.NET Framework 3.0 Mark Johnston Developer & Platform Group, Microsoft Ltd
Rahul Gangwar Partner Technical Consultant | Microsoft |
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
Module 7 Data Binding to Collections. Module Overview Binding to Collections of Objects Using Collection Views Create Master-Detail User Interfaces Using.
C# 2.0 and Future Directions Anders Hejlsberg Technical Fellow Microsoft Corporation.
Building More Reliable And Better Performing Web Applications With Visual Studio 2005 Team System Gabriel Marius TLN312 Program Manager Microsoft Corporation.
Microsoft Office Excel 2007: Programming Business Intelligence Features John Hooper Service Line Architect Microsoft Corporation Jed Farr Senior Consultant.
Lap Around Windows Presentation Foundation Rob Relyea PRS305 Lead Program Manager Windows Presentation Foundation
Web Services Error Handling and Debugging. Agenda Simple SOAP faults Advanced SOAP faults SOAP headers and faults Error handling From a Service Perspective.
1 Catching up on Rich Clients (round 1) Mike Ormond, Mike Taulty Developer & Platform Group Microsoft Ltd
Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Joe Stegman Title: Lead Program Manager Session code.
Language Integrated Query Mike Taulty Developer & Platform Group Microsoft Ltd
This template uses Microsoft’s corporate font, Segoe Segoe is not a standard font included with Windows, so if you have not already done so, you need to.
Connect with life Cheryl Johnson VSTS Solution Expert | Canarys Automations Pvt Ltd Performance Testing.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Performance Testing Using VSTS Saravana Kumar Microsoft MVP, VSTS Hewlett Packard Saravana Kumar Microsoft MVP, VSTS Hewlett Packard.
Using Data in Microsoft Visual Studio 2005 Tools for the Microsoft Office System Mike Hernandez Product Manager Visual Studio Tools for Office.
Building Enterprise Applications Using Visual Studio®
1/21/2018 6:52 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Mike Harsh PRSL001 Program Manager Microsoft Corporation
Integrating Enterprise Applications Into SharePoint® Portal Server
Microsoft Ignite /4/2018 8:46 AM
Visual C# 2005: IDE Enhancements
Avalon – Using Data In Your Applications
Building Awesome HTML Applications in Blend for Windows 8
Microsoft Virtual Academy
Intranet web banner units
Microsoft Build /6/2018 4:22 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Open sourced Power BI visuals The power you need for your custom visualization needs Lukasz Pawlowski Senior Program
Tech Ed North America /1/ :36 AM Required Slide
Jim Nakashima Program Manager Cloud Tools
What's New in Visual Studio 2005
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
DEV312 基于WPF的数据绑定.
Internal social media units
C++ Productivity Improvements
Microsoft Connect /23/ :38 AM
DEV354 Visual Studio 2005: New Enhancements For Debugging Applications
DEV322 Visual Studio 2005 C# IDE Enhancements
CSE775 DO supporting slides for VRTS Client Demo
Windows Forms in Visual Studio 2005: An in-depth look at key features
Presentation transcript:

WPF Data Binding Tomer Shamam Smart Client Team Leader Sela Group

Agenda WPF in a Nutshell Today’s Data-View Data Binding Concept Handling Data Changes Value Conversion Collection Data Binding Data Validation Trace and Debug Data Visualization New in.NET 3.5 SP1 Limitations

WPF in a Nutshell

Today’s Data-View Set Move Load

Data Binding in Action One Way Two Way One Time One WayTo Source

Data Binding in Action

Handling Data Changes Socket socket = …; View view = …; Binding binding = …;... socket.IsActive = true; Socket socket = …; View view = …; Binding binding = …;... socket.IsActive = true; IsActive = Socket false Changed true

Property Change Mechanisms INotifyPropertyChanged interface Changed event pattern PropertyDescriptor value changed WPF DependencyProperty

Handling Data Changes

+ Temperature Site INotifyPropertyChanged Two-way Value Conversion Temperature Brush Converter Temperature Brush Converter Fahrenheit Celsius Converter Fahrenheit Celsius Converter

Data Binding Converters

Collection Data Binding Collection SingleSocket <ListView ItemsSource=“{Binding}” /> ItemsSource=“{Binding}” /><ListView Sort () Filter() Group() Sort () Filter() Group() CollectionView OnOffSwitch RangeSwitch SingleSocket

Collection Binding

Data Validation User input validation in WPF is done through Binding Three options to validate input: ExceptionValidationRule IDataErrorInfo Custom Validation Rule <Binding Source="{StaticResource data}" Path="Age" UpdateSourceTrigger="PropertyChanged">

Validating User input

Trace and Debug Binding throws exceptions on critical errors Path spelling mistakes are traced Binding errors are traceable TraceListener listener = new XxxWriterTraceListener(...); PresentationTraceSources.DataBindingSource.Listeners.Add( listener);... C# App.config

Data Binding Tracing

Data Visualization Collection SingleSocket OnOffSwitch RangeSwitch SingleSocket

Data Visualization

Limitations Data Binding is Untyped Target is limited to DependencyObject No multithreaded support for Collection Binding Data Template parts are Hard to Get! Interface-specific Data Template is not supported Blend data-binding support is limited

New in.NET 3.5 SP1 StringFormat support within {{ Binding }} expressions New alternating rows support in ItemsControl Better handling for null in editable controls Item-level validation MultiSelector support IEditableCollectionView support Performance improvements with IEnumerable

Summary New Design Approach Data-View Decoupling Better Development Experience Eliminates Boilerplate Code Try it now…

Resources Data Binding on MSDN us/library/ms aspx us/library/ms aspx Windows Client.NET Beatriz Costa Blog My Blog shamam/ shamam/

© 2007 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.