MGB 2003 Adam Calderon – C# MVP Principal Engineer Interknowlogy

Slides:



Advertisements
Similar presentations
Developing Event Driven State Machine Workflows S1 S2 S3 S4 Adam Calderon Principal Engineer - Interknowlogy Microsoft MVP – C#
Advertisements

The Microsoft Technical Roadshow 2006 Windows Presentation Foundation (WPF) Marcus Perryman
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Scenario Fixed look with some logic Split large page into smaller chunks Reuse xaml/logic in multiple places Platform Support … … public partial.
Windows Presetation Foundation (WPF) 1. Introduction.
Customizing XAML Skins for PowerBuilder.NET WPF Applications
Introduction & Welcome Marcus Perryman Mike Taulty
OFC312 Developing Workflows for the 2007 Microsoft Office System and Windows SharePoint Services (version 3) Adam Calderon Principal Engineer - Interknowlogy.
● Dondi Vigesaa ● Operations Engineer ● Microsoft Corporation ● How Microsoft IT Deploys Windows Server 2008.
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
Connect with life Praveen Srvatsa Director | AsthraSoft Consulting Microsoft Regional Director, Bangalore Microsoft MVP, ASP.NET.
Information About Microsoft Project and Project Server Cumulative December Update Adrian Jenkins Support Escalation Engineer Microsoft Corporation 1 Brian.
Microsoft ®.NET and Microsoft ® Office 2003 Suthep Sangvirotjanaphat [MVP]
Using the Actions Pane, Host Controls, and Smart Tags
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
Adam Calderon – C# MVP Application Development Practice Lead Interknowlogy.
Presentation advances in.NET Framework 3.0 Mark Johnston Developer & Platform Group, Microsoft Ltd
Jaime Rodriguez | Microsoft Principal Technical Evangelist Laurent Bugnion | IdentityMine Senior Director XAML Deep Dive for Windows & Windows Phone Apps.
Adam Calderon – C# MVP Application Development Practice Lead Interknowlogy.
Microsoft Dynamics NAV 2009 and Architecture Overview Name Title Microsoft Corporation.
Enterprise Library Extensibility Brian Button VP of Engineering Asynchrony Solutions, Inc.
Lap Around Windows Presentation Foundation Rob Relyea PRS305 Lead Program Manager Windows Presentation Foundation
ControlTemplate and DataTemplate Doncho Minkov Telerik School Academy Technical Trainer
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
Module 4 Taking Control of the User Interface. Module Overview Sharing Logical Resources in an Application Creating Consistent User Interfaces by Using.
Windows Presentation Foundation ("Avalon"): Beautiful Code, Beautiful Design - Applications Your Designers Can Work With Robert Ingebretsen PRS317 Program.
Friday, March 8 Creating real Custom Controls Kelvin van Geene 12:15.
Design To Blend Dale G. Jones Director of Creative Design IdentityMine, Inc.
BizTalk Damir Dobric Lead Architect. Agenda Microsoft BizTalk RFID Overview Architecture Application models Implementing Event Handlers Sensors.
Part of the Microsoft.NET Framework 3.0 Tomer Shamam.NET Technologies Expert Sela Group
Project Server 2010 – Performance Part 1: Setup, Test Execution, and Results (Level 300) Mike Shughrue Principal Consultant Microsoft Corporation
XSLT ‘Extreme’ TLA327 Dave McMahon MCAD,MCDBA,MVP – Connected Systems Developer.
Reporting Services Futures: Report Authoring for Information Workers Ciprian Jichici Microsoft Regional Director for Romania General Manager, Genisoft.
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Dive Into® Visual Basic 2010 Express
Mike Harsh PRSL001 Program Manager Microsoft Corporation
Build accessible Metro style apps using XAML
Support your infrastructure with data-driven network diagrams
Unit testing your metro style apps built using XAML
6/10/ :23 PM TOOL-504T A deep dive into Visual Studio 11 Express for designing Metro style apps using XAML Joanna Mason & Unni Ravindranathan Program.
How to Build a Complete Office Add-in Solution
Avalon – Using Data In Your Applications
8/3/2018 7:11 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Building Awesome HTML Applications in Blend for Windows 8
Reaching more customers with accessible Metro style apps using HTML5
Integrating with the Windows Device Experience
WPF AKEEL AHMED.
XAML Deep Dive for Windows & Windows Phone Apps Jump Start
Digital display units This template is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED, OR STATUTORY, AS TO THE INFORMATION.
MIX 09 12/8/2018 4:33 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Learn how to make SharePoint Accessible and Inclusive
The lifetime of XAML text: from input to display through printing
Office 365 – Attractive and Easy to Use.
Sascha P. Corti Developer Evangelist Microsoft Switzerland sascha
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Jochen Seemann Program Manager Enterprise Tools Microsoft Corporation
DEV312 基于WPF的数据绑定.
Visual Studio 2010 SharePoint Development Tools Overview
Tech·Ed North America /22/2019 7:40 PM
One Marketing Template
Brandon Bray Principal Group Program Manager Microsoft Corporation
Reveal Highlight Introduction to using light in your app
Optimizing your content for search and discovery
Windows Forms in Visual Studio 2005: An in-depth look at key features
Bringing existing managed code into Metro style apps
Developer & Platform Group, Microsoft Ltd
Tech Ed North America /6/2019 2:07 PM Required Slide
Contexualized Data In Document Authoring
Microsoft Virtual Academy
Presentation transcript:

MGB 2003 Adam Calderon – C# MVP Principal Engineer Interknowlogy An Introduction to Styles and Templates in Windows Presentation Foundation (WPF) Adam Calderon – C# MVP Principal Engineer Interknowlogy © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

What We Will Cover What Styles are and how to use them MGB 2003 What We Will Cover What Styles are and how to use them How Triggers can be used to replace common UI behavior How Templates can be used to skin controls How all of this comes together © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Session Prerequisites MGB 2003 Session Prerequisites General Understanding of XML and XAML Basic knowledge of Microsoft® Windows® Presentation Foundation (WPF) Basic knowledge of WPF Resources Level 200 © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Agenda Styles Triggers Templates MGB 2003 Agenda Styles Triggers Templates Adding Style to an existing application © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Styles Overview of Styles MGB 2003 Styles Overview of Styles What are styles? Problems they address Elements that support styles © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Styles Style Class Properties MGB 2003 Styles Style Class Properties Key TargetType Setters Property Event Resources Triggers © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Code Example of a Style <Style x:Key="Style1"> MGB 2003 Code Example of a Style <Style x:Key="Style1"> <Setter Property="Control.Background" Value="Yellow"/> </Style> <Label Content="Yellow Background" Style="{StaticResource Style1}" /> <Style TargetType="{x:Type TextBlock}"> <Setter Property="FontFamily" Value="Segoe Black" /> <Setter Property="HorizontalAlignment" Value="Center" /> <Setter Property="FontSize" Value="12pt" /> <Setter Property="Foreground" Value="#777777" /> <TextBlock>Some Text</TextBlock> © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Styles Extending Styles MGB 2003 Styles Extending Styles Order of Precedence BasedOn Property Style-based Element-based © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Demonstration One Styles in Action MGB 2003 © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Agenda Styles Triggers Templates MGB 2003 Agenda Styles Triggers Templates Adding Style to an existing application © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Triggers Overview of Triggers MGB 2003 Triggers Overview of Triggers Sets properties in response to end-user actions No code solution to code-based remedies of today © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Triggers Basics of Triggers MGB 2003 Triggers Basics of Triggers Property set must be a dependency property Properties reset when trigger dependent property changes back Supports single trigger entries and multiple trigger entries (composite trigger) Supports triggers that are dependent upon data binding and not just standard property binding © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Demonstration Two Triggers in Action MGB 2003 © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Agenda Styles Triggers Templates MGB 2003 Agenda Styles Triggers Templates Adding Style to an existing application © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Templates Overview of Templates MGB 2003 Templates Overview of Templates Defines visual appearance of controls Out-of-box controls get their visual appearance from Templates Brings together styles and triggers © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Templates Basics of Templates MGB 2003 Templates Basics of Templates Three types of templates: ControlTemplate ItemsPanelTemplate DataTemplate © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Templates Control Templates MGB 2003 Templates Control Templates Resources TargetType Trigggers TemplateBinding links template and control properties ContentPresenter can be used to display controls content © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

MGB 2003 Templates in Action Demonstration Three Templates in Action © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Agenda Styles Triggers Templates MGB 2003 Agenda Styles Triggers Templates Adding Style to an existing application © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Adding Style to an Application Steps MGB 2003 Adding Style to an Application Steps Use Style Setters to change the appearance of the text blocks Use Control Templates to redefine the visual tree of a control Use Data Templates to determine how the data appears Use Triggers to create dynamic user interface (UI) © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

MGB 2003 Transforming an Existing Application Demonstration Four Transforming an Existing Application © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Session Summary Styles are powerful and flexible MGB 2003 Session Summary Styles are powerful and flexible Triggers eliminate user interaction-based UI coding Controls are more about behavior Control Templates modify visual aspects of controls © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

For More Information MSDN® Links Other Links MGB 2003 For More Information MSDN® Links Microsoft Windows® Vista™ development center: http://msdn.microsoft.com/windowsvista/ Microsoft .NET Framework 3.0 for developers: http://msdn.microsoft.com/winfx/ Windows Presentation Foundation code-named "Avalon:” http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=119&SiteID=1 Other Links Microsoft .NET Framework: http://www.netfx3.com/ © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Additional Resources Applications = Code + Markup By Charles Petzold, MGB 2003 Additional Resources Applications = Code + Markup By Charles Petzold, Microsoft Press® © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Adam Calderon More info on InterKnowlogy: www.InterKnowlogy.com MGB 2003 Adam Calderon More info on InterKnowlogy: www.InterKnowlogy.com Contact Information E-mail: adamc@InterKnowlogy.com Phone: 760-930-0075 x274 Blog: http://blogs.InterKnowlogy.com/AdamCalderon About Adam Calderon Microsoft MVP – C# Microsoft UI Server Frameworks Advisory Council Developer / Author / Speaker / Teacher © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Questions and Answers Submit text questions using the “Ask” button. MGB 2003 Questions and Answers Submit text questions using the “Ask” button. Don’t forget to fill out the survey. For upcoming and previously live webcasts: www.microsoft.com/webcasts Got webcast content ideas? Contact us at: http://go.microsoft.com/fwlink/?LinkId=41781 Today's webcast was presented using Microsoft® Office Live Meeting. Get a free 14-day trial by visiting: www.microsoft.com/presentlive  © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

MGB 2003 © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.