Windows Presentation Foundation Adam Calderon Principal Engineer Interknowlogy LLC

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

Win8 on Intel Programming Course Desktop : WPF Cédric Andreolli Intel Software
Expression Blend 4 – deep dive
The Microsoft Technical Roadshow 2006 Windows Presentation Foundation (WPF) Marcus Perryman
Introduction to Windows Presentation Foundation (WPF) Dr. Frank McCown COMP 445 – GUI Programming.
LAYOUT OF PAGE ELEMENTS September 28 th, PATTERNS Common ways to use the Layout Elements of Visual Hierarchy, Visual Flow, Grouping and Alignment,
Declarative based UI programming: WPF, Silverlight & Surface Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP.
Dinko Jakovljević Microsoft Student Partner | BambooLab
An Introduction To Silverlight Gergely Orosz
Windows Presetation Foundation (WPF) 1. Introduction.
1 Moderne GUI og Silverlight Windows Presentation Foundation.
Introduction & Welcome Marcus Perryman Mike Taulty
Open and save files directly from Word, Excel, and PowerPoint No more flash drives or sending yourself documents via Stop manually merging versions.
WinFX – A Lap Around the Windows Presentation Foundation Bart J.F. De Smet MVP Visual C#
WPF For PowerBuilder Developers
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.
.NET Database Technologies: Introduction to WPF and Entity Framework DataBinding.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
1 COS240 O-O Languages AUBG, COS dept Lecture 33 Building Apps Technologies C# (WPF part 1)
WPF chapter 15 Dr. John Abraham Professor UTPA. WPF –an introduction WPF provides a single platform capable of handling graphics, audio and video. WPF.
Module 11 Control Customization. Module Overview Overview of Control Authoring Creating Controls Managing Control Appearance by Using Visual States Integrating.
A Jumpstart to WPF by Kevin Grossnicklaus ArchitectNow.
1 Intro XAML Attribute syntax & property syntax Panels Reusable resources Controls Data binding Steen Jensen, spring 2014.
An Introduction to Silverlight Matt Harrington Developer Evangelist, Microsoft October 20, 2011.
Windows Presentation Foundation. Agenda Introduction Developing Applications WPF and WF interoperability Custom Controls Styles and Templates Data Binding.
Windows Presentation Foundation. Goal The goal of Windows Presentation Foundation (WPF) is to provide these advances for Windows. Included in version.
Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP Declarative based UI programming: WPF, Silverlight & Surface.
Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP Jump into WPF!
Adam Calderon – C# MVP Application Development Practice Lead Interknowlogy.
Silverlight Technology. Table of Contents 1.What is Silverlight Technology? 2.Silverlight Overview. 2.1 How it works 2.2 Silverlight development tools.
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.
The Microsoft Technical Roadshow 2007 Rich Client Development in XAML Mark Johnston Developer & Platform Group Microsoft Ltd
Declarative based UI programming: WPF, Silverlight & Surface Tim Huckaby CEO, InterKnowlogy Microsoft RD & MVP.
Presentation advances in.NET Framework 3.0 Mark Johnston Developer & Platform Group, Microsoft Ltd
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL Windows Presentation Foundation Ruwan Wijesinghe.
Tim Huckaby Founder, InterKnowlogy Microsoft RD & MVP SESSION CODE: WEB203.
Adam Calderon – C# MVP Application Development Practice Lead Interknowlogy.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Introducing Windows Presentation Foundation (Avalon) The Next GDI? Shawn Wildermuth Wildermuth Consulting Services, LLC
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.
Windows Presentation Foundation (WPF). Introduction Separates appearance of user interface from behavior Appearance usually specified by XAML Behavior.
C# kursus Rohde & Schwarz1 Moderne GUI Windows Presentation Foundation.
Module 3 Designing and Developing a User Interface.
Contents : What is Silverlight? Silverlight Overview Silverlight Toolkit Overview Timeline & Packaging Silverlight V1.0 & V1.1 Properties of V1.0 Properties.
Module 4 Taking Control of the User Interface. Module Overview Sharing Logical Resources in an Application Creating Consistent User Interfaces by Using.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
1 Välkommen till Sommarkollo Windows Presentation Foundation Per Östman ISV Developer Evangelist
Windows Presentation Foundation ("Avalon"): Beautiful Code, Beautiful Design - Applications Your Designers Can Work With Robert Ingebretsen PRS317 Program.
.NET Framework Presentation. About Me Patrik Löwendahl –C# MVP –Certified Vista Touchdown Trainer Cornerstone
Microsoft’s Rich Web Technology XAML,WPF and WPF/E July, 2006 John Allwright.
Windows Presentation Foundation. User Experience: Recent Past Web HTML Sacrificed UX for portability, connectivity and simplicity 1997 – DHTML.
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL Windows Presentation Foundation Ruwan Wijesinghe.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Soyatec Contents Needs Architecture XAML fundamentals Data Binding Advanced features Style Q&A.
Part of the Microsoft.NET Framework 3.0 Tomer Shamam.NET Technologies Expert Sela Group
Introduction to Avalon Mike Taulty Microsoft Ltd
Adam Schultz MVVM and WPF. MVVM Model, View, ViewModel A software architecture designed to separate out User Interface design, Business Logic, and Data.
Introduction to Silverlight
Important New Concepts In WPF
Introduction to Silverlight
Understand Windows Forms Applications and Console-based Applications
WPF AKEEL AHMED.
.NET and .NET Core 7. XAML Pan Wuming 2017.
Windows Presentation Foundation
Silverlight Technology
Tutorial 6 Creating Dynamic Pages
Windows Presentation Foundation
Presentation transcript:

Windows Presentation Foundation Adam Calderon Principal Engineer Interknowlogy LLC The next generation of Windows Forms

What is WPF Windows Presentation Foundation is Microsoft's unified presentation subsystem for Windows, and is exposed through WinFX and XAML. It consists of a display engine and a managed-code framework. Windows Presentation Foundation unifies how Windows creates, displays, and manipulates documents, media, and user interface (UI), enabling developers and designers to create visually stunning, differentiated user experiences

What is WinFx WinFX is Windows Vista's managed-code programming model, building on and extending the.NET Framework. WinFX offers both practical solutions to today's software challenges and new opportunities to create software and services not possible now. It enables both developers and designers to quickly create new applications and experiences that are more reliable and secure, visually stunning, smarter about information management, better connected, and more collaborative.

What is XAML XAML is a markup language that declaratively represents user interfaces for Windows applications, improving the richness of the tools with which developers and designers can compose and repurpose UI. For Web developers, XAML provides a familiar UI description paradigm. XAML also enables the separation of UI design from the underlying code, enabling developers and designers to work more closely together.

Sample XAML <Window x:Class="WindowsApplication1.Window1" xmlns=" xmlns:x=" Title="WindowsApplication1"> <Label VerticalAlignment="Top" HorizontalAlignment="Left“ Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Grid.RowSpan="1“ Margin="32,37,0,0" Width="115.63" Height="23" Name="label1">Hello World

WPF Application Types Windows Application –Standard single window type –Browser navigation type Browser Application –Runs in a sandbox with “Internet Permissions”

Layout Basics Panels layout children Size to content AlignmentsMarginsPadding Content Overflow

Panels – How you layout forms DockPanel –Allocates the entire edge of the panel area to each child StackPanel –Lays out children in a vertical or horizontal stack Grid –Arranges children within a grid Canvas –Performs no layout logic. Puts children where you tell it to.

Controls EventsCommands Built-In Controls

Control Events (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]

Working with Events Halting Events Private void Grid_ButtonDown(object sender, RoutedEventArgs e) { //do something here e.Handled = true; } Determining the Target Private void Grid_ButtonDown(object sender, RoutedEventArgs e) { // who is the originator MessageBox.Show(((System.Windows.Controls.Control)e.OriginalSource).Name); }

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

Standard Command Classes Class Command Types ApplicationCommands Commands common to almost all applications. Includes clipboard commands, undo and redo and document level operations (open,close,print,etc..) ComponentCommands Operations for moving through information such as scroll up and down, move to end, and text selection EditCommands Text editing commands such a bold, italic and alignment MediaCommands Media-playing operations such as transport (play,pause,etc..), volume control and track selection

Built-In Controls Not wrappers around old Win32 controls Native WPF controls Support styling, resolution independence, data binding, composition and full support for WPF graphic capabilities Includes Most Standard Controls –Buttons –Slider and Scroll –Text Controls (Textbox, Label) –Menus and Toolbars

Data Binding 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 Supports two-way data binding to list if list inherits from ObservableCollection Data Templates SortingFilteringMaster/Detail/Detail

Multiple Data Sources Object Data Source XML Data Source Relational Data Source

Styles Used for both Elements (Controls) and Data Templates Can be used to set properties (Font) or define the way an object looks Different types: Inline, Named Can target a specific type and can inherited like CSS.

Window1.xaml.csContains: Application logic Created by: Application developer Window1.xamlContains: Principal UI (controls, layout, etc.) Created by: Application developer or designer Design Experience: By hand or using a visual tool Styles.xamlContains: Application “style” (visual description of UI elements) Created by: Application designer Design Experience: By hand or using a visual tool Laying out files with Styles in Mind Data model, event names, element names, etc. Resource names and element types.

Triggers Property Triggers Data Triggers Event Triggers

What else is in WPF Control Templates ResourcesGraphicsAnnimation Custom Controls Integration with VS2005 Controls ClickOnce Deployment

Resources Programming Windows Presentation Foundation ( by Chris Sells and Ian Griffiths) /sr=8-1/ref=pd_bbs_1/ ?n=507846&s=books&v=glance WinFx December CTP Windows Vista Developers Center Windows Presentation Foundation Forum