1 / 11

Windows Presentation Foundation

WPF. Windows Presentation Foundation. Origins – Who, When, Where. Who? Microsoft When? November 2006 Where? Windows Vista Windows Server 2003 Windows XP Service Pack 2. What. Application development framework .NET 3.0 graphical subsystem Codenamed Avalon

arva
Download Presentation

Windows Presentation Foundation

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WPF WindowsPresentationFoundation

  2. Origins – Who, When, Where • Who? • Microsoft • When? • November 2006 • Where? • Windows Vista • Windows Server 2003 • Windows XP Service Pack 2

  3. What • Application development framework • .NET 3.0 graphical subsystem • Codenamed Avalon • Web-transportable subset (Silverlight)

  4. Why • Features • Media – video, animation, images, documents • Effects – shadows, blurs, transparencies, etc. • Data binding • Design (XAML) • Unified, language-agnostic modeling • View / logic separation – “code-behind” • Performance • 2D / 3D hardware acceleration

  5. How – Layers Presentation Framework End-user presentation – layouts, animations, data binding Presentation Core Properties, dependencies, dispatchers Common Language Runtime .NET virtual machine Media Integration 3D, animations Codecs Media codecs User32 Legacy system DirectX Hardware Accel.

  6. How – Internal Structure • Document Object Model (DOM) • Eg. JavaScript’s HTML DOM • Tree of Visual Objects • Rendering details (transparencies, clipping, etc.) • Dependency Objects • Event-driven behaviour triggers • Declarative Programming (XAML) • eXtensible Application Markup Language

  7. How – Thread Responsibilities • Media Integration Layer (MIL) • Background thread • Periodically traverses DOM • Painter’s Algorithm • Caches, buffers and renders elements • UI Manager • Priority-sorted Dispatcher queue • GUI functionality only • Like SwingWorkers and Event Dispatch Thread

  8. XAML • eXtensible Application Markup Language • Like the eXtensible UI Language (XUL) • XML-based • eXtensible HyperText Markup Language (XHTML) • OpenDocument Format (ODF) • Office Open XML (OOXML - .docx, .xlsx, .pptx) • eXtensible Presentation Format (XPF) • Scalable Vector Graphics (SVG)

  9. XML Advantages • Dominant document model language • Readable and generic • XQuery (XML Query Language) • Set of all colours used • //@color • Average count of buttons per window • count(//button) • XSL (Extensible Stylesheet Language) • XSL-FO (XSL Formatting Objects) • XSLT (XSL Transform)

  10. Development • Microsoft Expression Blend • The artist [tool] formerly known as Sparkle • Artist-friendly development • No Photoshop / UI translation • Searchable components • Scalable modules • Scrollable panel container

  11. Assignment • Install Microsoft Expression Blend trial • \\142.232.18.47\4870\blend.msi • Create GUI in design mode • GridSplitter • Rectangle, featuring • Rounded corners • Angled gradients • Transparency • Borders • View and comment XAML

More Related