SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Why Windows Presentation Foundation?
Windows Presentation Foundation

       Unified
    approach to      Integration as part
                    of development and
   UI, Documents,        experience
     and Media

     Integrated,    Utilizing the power
    vector-based          of the PC
    composition      throughout the
                      graphics stack
       engine

                     Bringing designers
    Declarative          directly into
   programming           application
                        development



                          Allowing
      Ease of         administrators to
    deployment      deploy and manage
                    applications securely
Scripps Healthcare
Allowing cancer researchers to collaborate in the search for a cure
Carl Zeiss
Medical imaging analysis
Yahoo
Next-generation instant messaging client
Iconics
Real-time manufacturing visualizations
Areva
Monitoring and controlling the electricity power grid
fnac.com
French Technology Retailer
WPF Technical Overview
Document Services             User Interface Services
                                                        Application
                          XPS Documents                                          Controls
                                                         Services
                                                                                                      Data Binding
                                                        Deployment
                        Packaging Services                                       Layout
    XPS Viewer                                           Services


                      Core Presentation                                                      Base Services

                         Imaging             2D                               Audio                     XAML
                                                              Text
                          Effects            3D                               Video                 Accessibility

                                                  Animation                                         Input & Events

                                             Visual Primitives                                  Property System



                                                                                          Input /
                   DWM                                                Property
                                                                                         Eventing
                                                                       Engine
                                                                                          System
 Composition
   Engine               Media Integration Layer

Windows Media
 Foundation                   Direct3D                                                .NET Framework

                 Windows Vista Display Driver (LDDM)
Key Platform Concepts


                                   Element                           Lookless
        XAML
                                 Composition                         Controls


                       Data                       Composited
                      Binding                       Visuals


http://msdn.microsoft.com/msdnmag/issues/06/01/WindowsPresentationFoundation/default.aspx
XAML: Declarative Programming for Windows
   • Markup for Windows
       • Build applications in simple declarative statements
       • Can be used for any CLR object hierarchy (not just WPF)
   • Code and content are separate
       • Streamline collaboration between designers and developers
   • Easy for tools to consume and generate




<Button Width=quot;100quot;>OK    Button b1 = new Button();   Dim b1 As New Button
  <Button.Background>     b1.Content = quot;OKquot;;          b1.Content = quot;OKquot;
    LightBlue             b1.Background = new         b1.Background = New _
  </Button.Background>       SolidColorBrush              SolidColorBrush _
</Button>                      (Colors.LightBlue);          (Colors.LightBlue)
                          b1.Width = 100;             b1.Width = 100
Controls, Templates, Styles & Resources,
Layouts, Animation
                                                      Animation, Triggers, Timelines
                            <StackPanel>
 Templated                   <StackPanel.Triggers>
                               <EventTrigger RoutedEvent=“Button.Clickquot;>
   Button                        <EventTrigger.Actions>
                                   <BeginStoryboard>
                                     <BeginStoryboard.Storyboard>
                                       <Storyboard>

                                            <ColorAnimation To=quot;Yellowquot; Duration=quot;0:0:0.5“

 UI Services
                                              Storyboard.TargetName=quot;TheBrushquot;
                                              Storyboard.TargetProperty=quot;Colorquot; />

 • Templates                                <DoubleAnimation To=quot;45quot; Duration=quot;0:0:2quot;
                                              Storyboard.TargetName=quot;LowerEllipseTransformquot;
 •   Layout                                   Storyboard.TargetProperty=quot;Anglequot; />


 • Controls Library
                                         ...
                             </StackPanel.Triggers>

 •   Styles and Resources    … remainder of contents of StackPanel, including x:Name'd
                               TheBrush and LowerEllipseTransform …
 •   Annotation
                            </StackPanel>
Data Binding

Binding Target                       Binding Source   <StackPanel>
                                                         <Label>Select A Customer</Label>
Dependency Object                         Object         <ListBox
                                                            Name=quot;myListBoxquot;
                       OneWay                               Background=quot;HoneyDewquot;
   Dependency
                       TwoWay            Property           ItemsSource=
    Property
                    OneWayToSource                       quot;{Binding {StaticResource mySource}}quot;
                                                         </ListBox>
                                                      </StackPanel>




• UI can be bound to CLR objects or XML
• Dependency properties can also be bound to ADO.NET
  and objects associated with Web Services and Web properties
• Sort, filter, and group views can be generated on top of the data
• Data templates can be applied to data
Integrated Vector-based
Graphics and Composition
• Modern graphics capabilities
  •   2D and 3D graphics
  •   Image effects and codec
  •   Hardware accelerated sub-pixel ClearType
  •   Video and audio
• Revolutionizing the graphics and media pipeline
  • Across the display, audio, printing, and remoting subsystems
  • Direct3D-based hardware acceleration throughout the rendering pipeline
• Anticipates future hardware technologies
  • Resolution independence
  • Double floating point precision
  • Deeper color pipeline


              Enabling high-quality, cinematic experiences
2D Graphics, 3D Graphics, Imaging
Audio & Video

                                      <Border Width=quot;400quot;
                                          BorderBrush=quot;Greenquot;
                                          BorderThickness=quot;9quot;>
                                       <StackPanel>
                                        <MediaElement Source=quot;aero.wmvquot; />
                                        <Button>Hello</Button>
                                       </StackPanel>
                                      </Border>


• Formats: WMV, MPEG, Some AVIs
• Can be synchronized with animations
• Windows Media Foundation used to instantiate playback machinery into a
  DirectShow graph
New Document Technologies
ClearType
ClearType
Typography
Flow Content
 • Block Elements   • Inline Elements
   •   Paragraph      • Runs
   •   List           • Bold
   •   Table          • Underline
   •   Floater      • Controls
   •   Figure         • Media
   •   Column         • Hyperlinks
                      • 2D Graphics
File Packaging Conventions
   Specification
    XML Paper


                     XPS           Office 2007        Custom
                   Document        Open XML           Formats
                    Format          Formats


                              Package Services

                    Parts and Relationships Abstraction

                                     ZIP
                    Open Packaging Conventions Specification
Windows Presentation Foundation 3.5
Top 10 New Features in WPF 3.5
1.   XBAP supported in Firefox

2.   UIElement3D: host 2D controls in 3D space

3.   Data bind to XLINQ data sources

4.   Performance fixes to animation, layered windows, data binding

5.   WCF available in partial-trust security mode

6.   System.AddIn for isolation of pluggable components

7.   Indic Script Support

8.   More granular debugging of data binding failures

9.   New properties for data validation

10. Native design-time developer tools integrated with Visual Studio 2008
WPF Resources
• http://msdn.microsoft.com/windowsvista
  • MSDN Developer Center for WPF

• http://windowsclient.net/

• Windows Presentation Foundation Technical Community

• http://www.microsoft.com/expression
  • Microsoft Expression Studio
Š 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
    conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
                                        MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Weitere ähnliche Inhalte

Ähnlich wie Wpf Tech Overview2009

Presentation wpf
Presentation wpfPresentation wpf
Presentation wpf
Mahesh Sherkar
 
Advanced Silverlight
Advanced SilverlightAdvanced Silverlight
Advanced Silverlight
rsnarayanan
 
Adopting Agile Tools & Methods In A Legacy Context
Adopting Agile Tools & Methods In A Legacy ContextAdopting Agile Tools & Methods In A Legacy Context
Adopting Agile Tools & Methods In A Legacy Context
Xavier Warzee
 

Ähnlich wie Wpf Tech Overview2009 (20)

Presentation wpf
Presentation wpfPresentation wpf
Presentation wpf
 
ArcReady - Architecting For The Client Tier
ArcReady - Architecting For The Client TierArcReady - Architecting For The Client Tier
ArcReady - Architecting For The Client Tier
 
Get To Know Silverlight
Get To Know SilverlightGet To Know Silverlight
Get To Know Silverlight
 
Modular applications with montage components
Modular applications with montage componentsModular applications with montage components
Modular applications with montage components
 
Win8 ru
Win8 ruWin8 ru
Win8 ru
 
Advanced Silverlight
Advanced SilverlightAdvanced Silverlight
Advanced Silverlight
 
Building Silverlight Applications Using .NET (Part 2 of 2)
Building Silverlight Applications Using .NET (Part 2 of 2)Building Silverlight Applications Using .NET (Part 2 of 2)
Building Silverlight Applications Using .NET (Part 2 of 2)
 
SVG in Data Acquisition and Control Systems
SVG in Data Acquisition and Control SystemsSVG in Data Acquisition and Control Systems
SVG in Data Acquisition and Control Systems
 
Silverlight 2 For Developers
Silverlight 2 For DevelopersSilverlight 2 For Developers
Silverlight 2 For Developers
 
An Introduction to Sencha Touch
An Introduction to Sencha TouchAn Introduction to Sencha Touch
An Introduction to Sencha Touch
 
Keyword Services Platform (KSP) from Microsoft adCenter
Keyword Services Platform (KSP) from Microsoft adCenterKeyword Services Platform (KSP) from Microsoft adCenter
Keyword Services Platform (KSP) from Microsoft adCenter
 
Patterns of Cloud Applications Using Microsoft Azure Services Platform
Patterns of Cloud Applications Using Microsoft Azure Services PlatformPatterns of Cloud Applications Using Microsoft Azure Services Platform
Patterns of Cloud Applications Using Microsoft Azure Services Platform
 
Adopting Agile Tools & Methods In A Legacy Context
Adopting Agile Tools & Methods In A Legacy ContextAdopting Agile Tools & Methods In A Legacy Context
Adopting Agile Tools & Methods In A Legacy Context
 
2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update
 
Rapidly Building Data Driven Web Pages with Dynamic ADO.NET
Rapidly Building Data Driven Web Pages with Dynamic ADO.NETRapidly Building Data Driven Web Pages with Dynamic ADO.NET
Rapidly Building Data Driven Web Pages with Dynamic ADO.NET
 
Criando jogos para o windows 8
Criando jogos para o windows 8Criando jogos para o windows 8
Criando jogos para o windows 8
 
The Web Framework Dream Team
The Web Framework Dream TeamThe Web Framework Dream Team
The Web Framework Dream Team
 
Integration
IntegrationIntegration
Integration
 
Webcast 09/2008 - Silverlight 2 Beta 2
Webcast 09/2008 - Silverlight 2 Beta 2Webcast 09/2008 - Silverlight 2 Beta 2
Webcast 09/2008 - Silverlight 2 Beta 2
 
Mesh-Enabled Web Applications
Mesh-Enabled Web ApplicationsMesh-Enabled Web Applications
Mesh-Enabled Web Applications
 

Mehr von Our Community Exchange LLC

Mehr von Our Community Exchange LLC (10)

Real Time Connected Vehicle Networking with HDInsight and Apache Storm
Real Time Connected Vehicle Networking with HDInsight and Apache StormReal Time Connected Vehicle Networking with HDInsight and Apache Storm
Real Time Connected Vehicle Networking with HDInsight and Apache Storm
 
2012 Updated Portfolio
2012 Updated Portfolio2012 Updated Portfolio
2012 Updated Portfolio
 
Roi and user experience
Roi and user experienceRoi and user experience
Roi and user experience
 
I phone versus windows phone 7 coding
I phone versus windows phone 7 codingI phone versus windows phone 7 coding
I phone versus windows phone 7 coding
 
U Xmagic Agile Presentation
U Xmagic Agile PresentationU Xmagic Agile Presentation
U Xmagic Agile Presentation
 
Porting the Legacy Application to Composite Application Guidance
Porting the Legacy Application to Composite Application GuidancePorting the Legacy Application to Composite Application Guidance
Porting the Legacy Application to Composite Application Guidance
 
WPF Line of Business Control Templates Styles
WPF Line of Business Control Templates StylesWPF Line of Business Control Templates Styles
WPF Line of Business Control Templates Styles
 
WPF Fundamentals
WPF FundamentalsWPF Fundamentals
WPF Fundamentals
 
WPF Line of Business Application XAML Layouts Presentation
WPF Line of Business Application XAML Layouts PresentationWPF Line of Business Application XAML Layouts Presentation
WPF Line of Business Application XAML Layouts Presentation
 
New Introductionfor Flash Designers
New Introductionfor Flash DesignersNew Introductionfor Flash Designers
New Introductionfor Flash Designers
 

KĂźrzlich hochgeladen

Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
nirzagarg
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
amitlee9823
 
SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptx
janettecruzeiro1
 
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdfB. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
University of Wisconsin-Milwaukee
 
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
amitlee9823
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
instagramfab782445
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
home
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
nirzagarg
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptx
TusharBahuguna2
 

KĂźrzlich hochgeladen (20)

Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
 
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
 
Case Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, PuneCase Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, Pune
 
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxSweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptx
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
 
SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptx
 
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdfB. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
 
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdfJordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
 
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
 
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls AgencyHire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptx
 

Wpf Tech Overview2009

  • 1.
  • 3. Windows Presentation Foundation Unified approach to Integration as part of development and UI, Documents, experience and Media Integrated, Utilizing the power vector-based of the PC composition throughout the graphics stack engine Bringing designers Declarative directly into programming application development Allowing Ease of administrators to deployment deploy and manage applications securely
  • 4. Scripps Healthcare Allowing cancer researchers to collaborate in the search for a cure
  • 8. Areva Monitoring and controlling the electricity power grid
  • 11. Document Services User Interface Services Application XPS Documents Controls Services Data Binding Deployment Packaging Services Layout XPS Viewer Services Core Presentation Base Services Imaging 2D Audio XAML Text Effects 3D Video Accessibility Animation Input & Events Visual Primitives Property System Input / DWM Property Eventing Engine System Composition Engine Media Integration Layer Windows Media Foundation Direct3D .NET Framework Windows Vista Display Driver (LDDM)
  • 12. Key Platform Concepts Element Lookless XAML Composition Controls Data Composited Binding Visuals http://msdn.microsoft.com/msdnmag/issues/06/01/WindowsPresentationFoundation/default.aspx
  • 13. XAML: Declarative Programming for Windows • Markup for Windows • Build applications in simple declarative statements • Can be used for any CLR object hierarchy (not just WPF) • Code and content are separate • Streamline collaboration between designers and developers • Easy for tools to consume and generate <Button Width=quot;100quot;>OK Button b1 = new Button(); Dim b1 As New Button <Button.Background> b1.Content = quot;OKquot;; b1.Content = quot;OKquot; LightBlue b1.Background = new b1.Background = New _ </Button.Background> SolidColorBrush SolidColorBrush _ </Button> (Colors.LightBlue); (Colors.LightBlue) b1.Width = 100; b1.Width = 100
  • 14. Controls, Templates, Styles & Resources, Layouts, Animation Animation, Triggers, Timelines <StackPanel> Templated <StackPanel.Triggers> <EventTrigger RoutedEvent=“Button.Clickquot;> Button <EventTrigger.Actions> <BeginStoryboard> <BeginStoryboard.Storyboard> <Storyboard> <ColorAnimation To=quot;Yellowquot; Duration=quot;0:0:0.5“ UI Services Storyboard.TargetName=quot;TheBrushquot; Storyboard.TargetProperty=quot;Colorquot; /> • Templates <DoubleAnimation To=quot;45quot; Duration=quot;0:0:2quot; Storyboard.TargetName=quot;LowerEllipseTransformquot; • Layout Storyboard.TargetProperty=quot;Anglequot; /> • Controls Library ... </StackPanel.Triggers> • Styles and Resources … remainder of contents of StackPanel, including x:Name'd TheBrush and LowerEllipseTransform … • Annotation </StackPanel>
  • 15. Data Binding Binding Target Binding Source <StackPanel> <Label>Select A Customer</Label> Dependency Object Object <ListBox Name=quot;myListBoxquot; OneWay Background=quot;HoneyDewquot; Dependency TwoWay Property ItemsSource= Property OneWayToSource quot;{Binding {StaticResource mySource}}quot; </ListBox> </StackPanel> • UI can be bound to CLR objects or XML • Dependency properties can also be bound to ADO.NET and objects associated with Web Services and Web properties • Sort, filter, and group views can be generated on top of the data • Data templates can be applied to data
  • 16. Integrated Vector-based Graphics and Composition • Modern graphics capabilities • 2D and 3D graphics • Image effects and codec • Hardware accelerated sub-pixel ClearType • Video and audio • Revolutionizing the graphics and media pipeline • Across the display, audio, printing, and remoting subsystems • Direct3D-based hardware acceleration throughout the rendering pipeline • Anticipates future hardware technologies • Resolution independence • Double floating point precision • Deeper color pipeline Enabling high-quality, cinematic experiences
  • 17. 2D Graphics, 3D Graphics, Imaging
  • 18. Audio & Video <Border Width=quot;400quot; BorderBrush=quot;Greenquot; BorderThickness=quot;9quot;> <StackPanel> <MediaElement Source=quot;aero.wmvquot; /> <Button>Hello</Button> </StackPanel> </Border> • Formats: WMV, MPEG, Some AVIs • Can be synchronized with animations • Windows Media Foundation used to instantiate playback machinery into a DirectShow graph
  • 23. Flow Content • Block Elements • Inline Elements • Paragraph • Runs • List • Bold • Table • Underline • Floater • Controls • Figure • Media • Column • Hyperlinks • 2D Graphics
  • 24. File Packaging Conventions Specification XML Paper XPS Office 2007 Custom Document Open XML Formats Format Formats Package Services Parts and Relationships Abstraction ZIP Open Packaging Conventions Specification
  • 26. Top 10 New Features in WPF 3.5 1. XBAP supported in Firefox 2. UIElement3D: host 2D controls in 3D space 3. Data bind to XLINQ data sources 4. Performance fixes to animation, layered windows, data binding 5. WCF available in partial-trust security mode 6. System.AddIn for isolation of pluggable components 7. Indic Script Support 8. More granular debugging of data binding failures 9. New properties for data validation 10. Native design-time developer tools integrated with Visual Studio 2008
  • 27. WPF Resources • http://msdn.microsoft.com/windowsvista • MSDN Developer Center for WPF • http://windowsclient.net/ • Windows Presentation Foundation Technical Community • http://www.microsoft.com/expression • Microsoft Expression Studio
  • 28. Š 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Hinweis der Redaktion

  1. More information here: http://blogs.msdn.com/tims/archive/2007/07/27/what-s-new-in-wpf-3-5-here-s-fifteen-cool-features.aspx