Windows presentation foundation
Download
1 / 18

Windows Presentation Foundation - PowerPoint PPT Presentation


  • 65 Views
  • Uploaded on

Windows Presentation Foundation. Moderne GUI og Silverlight. WPF Overview. Traditional GDI ( 25 years), GDI+, WinForms DirectX ( 16 years), Direct3D Quartz, DirectShow (14 years) Problems Showing their age Each API is different Mixing APIs is challenging. WPF Overview.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Windows Presentation Foundation' - lydie


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Windows presentation foundation

Windows Presentation Foundation

Moderne GUI og Silverlight


Wpf overview
WPF Overview

Traditional

  • GDI (25 years), GDI+, WinForms

  • DirectX (16 years), Direct3D

  • Quartz, DirectShow (14 years)

  • Problems

    • Showing their age

    • Each API is different

    • Mixing APIs is challenging


Wpf overview1
WPF Overview

Next Generation

  • WPF – replaces GDI/WinForms

  • Direct3D – large games, used by WPF

  • Media Foundation – ultimately will replace DirectShow

  • MCML – markup language for Media Center Edition applications

  • XNA – small games


Wpf overview2
WPF Overview

  • Compositing

    • UI, Documents, Media, 3D, Browser, …

  • Declarative programming with XAML markup

  • For Designers and Developers

  • Rewritten from scratch

    • Built on top of Direct3D

    • Hardware accelerated

    • Vector based

    • Resolution independent

    • Retained graphics


Wpf vision
WPF Vision

  • Integrated, vector-based composition engine

    • Utilizing the power of the PC throughout the graphics stack

  • Unified approach to UI, Documents, and Media

    • Integration as part of development and experience

  • Declarative programming

    • Bringing designers directly into application development

  • Ease of deployment

    • Allowing administrators to deploy and manage applications securely


XAML

  • XML for Applications Markup Language

<Button Name="button1">

Click Me!

</Button>

Button button1 = new Button();

button1.Content = "Click Me!";


Xaml properties
XAML: Properties

  • As attributes or elements

<Button Content="Click Me!"

Background="LightGreen" />

<Button>

<Button.Background>

LightGreen

</Button.Background>

Click Me!

</Button>


Xaml attached properties
XAML: Attached Properties

<Canvas>

<Button Canvas.Top="30" Canvas.Left="40">

Click Me!

</Button>

</Canvas>


Wpf layout and controls
WPF Layout and Controls

  • Class hierarchy


Layout controls
Layout Controls

  • StackPanel

  • WrapPanel

  • Canvas

  • DockPanel

  • Grid

  • ...


Simple controls
Simple Controls

  • PasswordBox

  • ScrollBar

  • ProgressBar

  • Slider

  • TextBox

  • RichTextBox

  • ...


Content controls
Content Controls

  • Button

  • RepeatButton

  • ToggleButton

  • CheckBox

  • RadioButton

  • Label

  • Frame

  • ListBoxItem

  • StatusBarItem

  • ScollBarViewer

  • ToolTip

  • UserControl

  • Window

  • NavigationWindow

  • ...


Headered content controls
Headered Content Controls

  • Expander

  • GroupBoxItem

  • TabItem

  • ...


Items controls
Items Controls

  • Menu

  • ContextMenu

  • StatusBar

  • TreeView

  • ListBox

  • ComboBox

  • TabControl

  • ...


Lookless controls
LooklessControls

  • Control implies behaviour

  • Probably supplies default look

    • Designer free to supply new look


Styles are about setting properties…



Developer or designer

Designer

Developer

Developer or Designer?


ad