Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP Declarative based UI programming: WPF, Silverlight & Surface.

Slides:



Advertisements
Similar presentations
Module 1: Creating an Application by Using Windows Presentation Foundation Overview of WPF Creating a Simple WPF Application Handling Events and Commands.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP Solving the Difficult Problems of Healthcare and Life Sciences with the Latest Generation of Microsoft.
Microsoft SharePoint 2010 technology for Developers
Data Binding in GUI Application Development Patrick O’Brien.
Declarative based UI programming: WPF, Silverlight & Surface Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP.
An Introduction To Silverlight Gergely Orosz
Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP Solving the Difficult Problems of Healthcare and Life Sciences with the Latest Generation of Microsoft.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Building Data Visualization Applications with the Windows Presentation Foundation and SilverLight...and Surface Tim Huckaby CEO, InterKnowlogy Microsoft.
1 Moderne GUI og Silverlight Windows Presentation Foundation.
Delivering the Art of Software WPF & Silverlight: Data Visualization, NUI, and Next Generation of User Experience Tim Huckaby Founder / Chairman, InterKnowlogy.
Level: All About Tim, InterKnowlogy & Actus… InterKnowlogy ( Tim Huckaby, Founder/Chairman ( )  Custom.
A Good UX How To Make It Happen EAE 4023, UNITE 2010 Tuesday, 9:15 am May 25 th 2010 Niels Gebauer Director Client Tools Consultancy
Solving the Challenges of Healthcare and Life Sciences with Microsoft Touch Technologies Tim Huckaby CEO/Founder, InterKnowlogy Microsoft RD & MVP.
DEV322 Visual Studio 2005 Tools for Microsoft Office: Building Smart Client Applications Tim Huckaby CEO – InterKnowlogy Microsoft Regional Director Microsoft.
WPF 3rd Party Controls WPF = Windows Presentation Foundation
It’s always better live. MSDN Events Developer Productivity Improvements with Visual Studio 2008 and Office Business Applications.
Creating a SharePoint App with Microsoft Access Services
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
Session Code: IW-02 Building Powerful Applications for the Microsoft Office System Using Microsoft Visual Studio Tools for the Microsoft Office System.
Windows Presentation Foundation Tim Huckaby CEO, InterKnowlogy Microsoft Regional Director & MVP.
Developing for the Microsoft Office System Jay Schmelzer Group Program Manager – Visual Studio.
Creating Business Workflow Using SharePoint Designer 2007 Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Microsoft SQL Server.
2 A First Look at Windows Presentation Foundation Everywhere ("WPF/E") Joe Stegman Lead Program Manager Microsoft Corporation.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Jump into WPF! Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP Level: Beginner / Intermediate.
C-ME A Smart Client Front-end for SharePoint 2007 Tim Huckaby CEO – InterKnowlogy Microsoft Regional Director Microsoft MVP –.NET.
Introduction to Silverlight By Alan Cobb 2008-Jan-10 Sacramento, CA
1 COS240 O-O Languages AUBG, COS dept Lecture 33 Building Apps Technologies C# (WPF part 1)
Domain-Driven Design using the ADO.NET Entity Framework Tim McCarthy Principal Engineer, InterKnowlogy
VWP03: Building Data Visualization Applications with WPF & Silverlight Tim Huckaby Founder / Chairman, InterKnowlogy Founder / CEO, Actus Software Microsoft.
Visual Studio Connections
A Jumpstart to WPF by Kevin Grossnicklaus ArchitectNow.
Windows Presentation Foundation. Agenda Introduction Developing Applications WPF and WF interoperability Custom Controls Styles and Templates Data Binding.
Introducing Reporting Services for SQL Server 2005.
Todd Kitta  Covenant Technology Partners  Professional Windows Workflow Foundation.
Domain-Driven Design Tim McCarthy Principal Engineer, InterKnowlogy
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Studio for WinRT XAML Russ Senior Developer Evangelist Greg Product Manager
Windows Presentation Foundation Adam Calderon Principal Engineer Interknowlogy LLC
Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP Jump into WPF!
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
LAYOUT CONTROLS. XAML Overview XAML : eXtensible Application Markup Language pronounced (ZAMEL) is a markup language used to design user interfaces XML-based.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Declarative based UI programming: WPF, Silverlight & Surface Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP.
Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP Building Data Visualization Applications with the Windows Presentation Foundation and SilverLight...and.
Are you getting the benefits from ASP.NET and AJAX? Introduction to the CTC ASP.NET Webforms Generator.
Tim Huckaby Founder, InterKnowlogy Microsoft RD & MVP SESSION CODE: WEB203.
Declarative Programming Layout and Controls Events and Commands Working with Data Styles.
New Features Overview. Agenda Silverlight - Intro Silverlight 3 New Features Overview with Demos, Demos and Demos… RIA Services Overview Demos, Demos,
Adam Calderon – C# MVP Application Development Practice Lead Interknowlogy.
A Lap Around Windows Presentation Foundation. Why hasn’t UX taken off in software? It’s Difficult! Animation 2D 3D Documents Styled Controls Video Windows.
Building Data Visualization Applications with WPF Tim Huckaby InterKnowlogy, CEO Microsoft RD & MVP VPF303.
DEV14 – Building Business Dashboards: Excel Services, KPIs and Report Centers Darwin Schweitzer Enterprise Technology Strategist
Intro to Datazen.
.NET Framework Presentation. About Me Patrik Löwendahl –C# MVP –Certified Vista Touchdown Trainer Cornerstone
2 Data Visualization: WPF & XAML…and Silverlight…and Surface..and “the phone” Session Objective: To get you excited by showing you “what you can do”
Forms Manager. What is Forms Manager? Forms Manager is a completely new online form creation and form data management tool.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Part of the Microsoft.NET Framework 3.0 Tomer Shamam.NET Technologies Expert Sela Group
Adam Schultz MVVM and WPF. MVVM Model, View, ViewModel A software architecture designed to separate out User Interface design, Business Logic, and Data.
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Introduction to Silverlight
Tech·Ed North America /20/ :01 PM
MGB 2003 Adam Calderon – C# MVP Principal Engineer Interknowlogy
Introduction to Silverlight
WPF AKEEL AHMED.
Windows Presentation Foundation
Presentation transcript:

Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP Declarative based UI programming: WPF, Silverlight & Surface

About… InterKnowlogy ( Tim Huckaby, CEO – Custom Application Development / Consulting / Software & Systems Engineering Firm headquartered in Carlsbad, CA – Design, Architect, Build and Deploy Enterprise Class Applications – Industry Experts: Most of the employees are published, MVPs, RD, Speakers, etc. Microsoft.NET Application development since 2000 Microsoft.NET Rich Client Pioneers / Industry Leaders Microsoft Touch Application Development Leaders (Surface / Windows 7 / Silverlight 3) Information Worker Solutions (VSTO & SharePoint) Integration / Messaging, B2B / B2C, Wireless / Mobility Leading Edge: Surface, WPF, Silverlight, Win7 touch, SharePoint, VSTO Cutting Edge Solutions on emerging Microsoft technologies Largest Client: Microsoft

Declarative Programming Layout and Controls Events and Commands Working with Data Session Agenda Styles

DEMO

Declarative Programming XAML replaces code Attributes control Layout and Style Event handlers wired-up in XAML Declarative Data Binding

What the heck is XAML? Separates the front-end from the back-end Simple declarative programming language suitable for constructing and initializing.NET Objects Usually the most concise way to represent user interfaces (or other hierarchies of objects) Doesn’t need a compile to render The language that almost all WPF related tools emit

Sample XAML Runs in a WPF Application: Runs in the Browser: :

Declarative Programming Gotcha(s), tips & tricks Not all XAML is created equal Silverlight was designed to be a small subset of WPF not a direct port Surface works with gestures so unique versions of some controls are required The Surface SDK is going to permeate WPF and Silverlight to provide a consistent API for touch across the stack.

DEMO

Layout Overview Content rendering flows inside parent Fixed positioning (Canvas) is seldom used Panels are used to house content Margins and Padding over fixed size

Panels (ALL) StackPanel Arranges child elements into a single line that can be oriented horizontally or vertically. Grid A flexible grid area that consists of columns and rows. Canvas An area within which you can explicitly position child elements by using coordinates that are relative to the Canvas area.

Panels (WPF and Surface) WrapPanel Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box. DockPanel An area where you can arrange child elements either horizontally or vertically, relative to each other.

Positioning Horizontal and Vertical Alignment Margin Padding Margin Text Block Padding

DEMO

Controls Overview Not all controls are created equal Silverlight is a subset of WPF so certain controls have not ported over yet Surface relies on touch so it has unique versions of some controls

Standard Common Controls TextBox Button CheckBox / ComboBox Image ListBox Tab

WPF Controls Menu and Toolbar TextBlock InkCanvas / InkPresenter Expander TreeView DocumentViewer UniformGrid

Silverlight Controls DataGrid Calendar ProgressBar

Surface Controls ScatterView Menu TagVisualizer InkCanvas

DEMO

Events and Commands Standard.NET Events Routed Events * Commands * * Partial or no support in Silverlight

Routed Events Bubbling * – Starts at the current element and bubbles up to the current element’s parent and that elements parent and so on [MouseLeftButtonDown] Tunneling * – Works opposite of bubbling and starts at the root element and works down to the originating element [PreviewMouseLeftButtonDown] Direct – Works like standard.NET event handling with only direct handlers being notified of events [Click] * Partial or no support in Silverlight

Commands Logical action that can be invoke in several ways Based on the RoutedCommand Class Uses both event tunneling [PreviewExecuteEvent] and event bubbling [ExecuteEvent] Not supported in Silverlight

DEMO

Working with Data Overview Simple Data Binding Complex Data Binding

Data Binding Overview Simple Field level Data Binding Complex Data Binding to multiple controls at a time (Master/Detail/Detail) Client-Side Sorting and Filtering Support for binding to Objects, XML and Relational data sources

Simple Data Binding Simple Data Binding using Business Objects Support for two-way synchronization in simple objects via the INotifyPropertyChanged interface Implicit and Declarative binding via the DataContext

Complex Data Binding Binding to Lists Supports two-way data binding to list if list inherits from ObservableCollection Data Templates Sorting Filtering Master/Detail/Detail

DEMO

Adding Style to Your Application Overview Resources * Triggers * * Partial or no support in Silverlight

Styles Overview What are styles? Problems they address in WinForms 2.0 – Styling controls one at a time – Unnecessary Custom Control Creation Similarities to Cascading Style Sheets – Inline declaration – Page level declaration – Separate file declaration

Style Examples

Resources Static Resources – Loaded when Window or Page Loads – Leads to slower page loading – Changes to underlining values are not propagated Dynamic Resources * – More overhead to allow for constant updates – Can only be used to set dependency properties – Can potentially improve Page and Window load time * Not supported in Silverlight

Resource Dictionary Contains hash table of resources Great way to organize resources Resource.MergedDictionaries combines many different file based resources * * Not supported in Silverlight

Triggers Setters that are set based on one or more conditions Three Types of Triggers – Property – Invoked when the value of a dependency property changes – Data – Invoked when the value of a plain.NET property changes – Event – Invoked when a routed event changes Not supported in Silverlight

The Silverlight Visual State Manager Alternative to Triggers in Silverlight Promotes separation between UI and code Controls have States and State Groups States within a State Group are immutable Fully supported in Blend Not supported in WPF

DEMO

Summary Layout in XAML is flexible Each technology has it’s own set of controls Data Binding is rich & supports many data types Styles bring life to your applications The learning curve can be steep, but is worth it. Download all my resources and dedicate some time to learn.

Where to go next: Windows Client Guidance Microsoft Platform Solution Architecture for the Application Developer by Tim Huckaby The “Anchor Document” to a ton of Rich Client Guidance

WPF: Where to go Next Free Resources WindowsClient.net - this is the official Microsoft community portal for WPF development, and is chock full of great resources WindowsClient.net Windows Client Development Samples, Guidance, FAQs and Blogs - Contains an aggregation of a ton of great stuff on the Windows Client Development platform. Windows Client Development Samples, Guidance, FAQs and Blogs Learn WPF page - this page links to podcasts, labs, and the very popular "how do I?" videos Learn WPF page MIX University's WPF Bootcamp - this is a full 3-day video training course on WPF, in which expert instructors guide you from the surface into the depths of the technology stack MIX University's WPF Bootcamp WindowsClient.net - this is the official Microsoft community portal for WPF development, and is chock full of great resources WindowsClient.net Windows Client Development Samples, Guidance, FAQs and Blogs - Contains an aggregation of a ton of great stuff on the Windows Client Development platform. Windows Client Development Samples, Guidance, FAQs and Blogs Learn WPF page - this page links to podcasts, labs, and the very popular "how do I?" videos Learn WPF page MIX University's WPF Bootcamp - this is a full 3-day video training course on WPF, in which expert instructors guide you from the surface into the depths of the technology stack MIX University's WPF Bootcamp

Silverlight & Surface: Where to go Next Free Resources - this is the official Microsoft community portal for Silverlight development - this is the official Microsoft community portal for Surface

Where to go Next Books Windows Presentation Foundation Unleashed (WPF) by Adam Nathan, Daniel LehenbauerAdam NathanDaniel Lehenbauer Essential Windows Presentation Foundation (WPF) by Chris AndersonChris Anderson Silverlight In Action by Chad Campbell and John Stockton Windows Presentation Foundation Unleashed (WPF) by Adam Nathan, Daniel LehenbauerAdam NathanDaniel Lehenbauer Essential Windows Presentation Foundation (WPF) by Chris AndersonChris Anderson Silverlight In Action by Chad Campbell and John Stockton

Where to go…soon… Windows Presentation Foundation A Scenario-Based Approach by Billy Hollis “Early April…I hope…” B. Hollis, 12/7/07 “October…” B. Hollis, 6/3/08 “It’s not going to be done in April.” B. Hollis, 2/24/09 “I took a.NET 4.0 dependency. Projected date now Jan 2010, because it can’t come out until VS2010 is released.” B. Hollis, 4/29/09

Where to go next : The InterKnowlogy WPF & Silverlight Reference Applications

Tim Huckaby, InterKnowlogy More info on InterKnowlogy: – Contact me: Tim Huckaby – – Phone: – Blog : About Tim Huckaby… – CEO, InterKnowlogy – Microsoft ® Regional Director – Southern California – Microsoft ®.NET Partner Advisory Council Founder / Member – Microsoft ® MVP -.NET – Microsoft ® Surface Partner Advisory Council – INETA Speaker – International.NET Users Group Association – Windows and.NET Magazine Advisory Board Member –.NET Developers Journal Magazine Advisory Board Member – Author / Speaker

InterKnowlogy – Who We Are Focused on Custom AppDev, Collaboration and Infrastructure Technologies Alpha / Beta Deployments Published Authors, Instructors, MS MVPs Client Service Delivery Focus HQ in Carlsbad, CA Worldwide Client Base

InterKnowlogy Technologies of Note Exchange / Active Directory Windows Server SMS System Center Performance Point MOSS 2007 InfoPath.Net 2.0 / 3.0 / 3.5 / 4.0 WPF & XAML WF & WCF Silverlight VSTS / TFS VSTO SQL BizTalk WPF, Silverlight, Surface, Windows 7 Touch

DEMO

InterKnowlogy - What We Do Best Custom Application Development System Integration Collaboration / Portals Infrastructure Business Intelligence High Level Technical Consulting

Tim Huckaby, InterKnowlogy More info on InterKnowlogy: – Contact me: Tim Huckaby – or – Phone: – Blog : About Tim Huckaby – Microsoft ® Regional Director – Southern California – Microsoft ®.NET Partner Advisory Council Founder / Member – Microsoft ® MVP -.NET – Microsoft ® Prescriptive Architecture Group Advisory Council – Microsoft Office ® Developer Advisory Council – Microsoft ® MSF advisory board member – INETA Speaker – International.NET Users Group Association – Windows and.NET Magazine Advisory Board Member –.NET Developers Journal Magazine Advisory Board Member – Author / Speaker