1 Välkommen till Sommarkollo
Windows Presentation Foundation Per Östman ISV Developer Evangelist
The WinFX Vision Enable developers to take advantage of new technologies and hardware advances Increase developer productivity Improve application security, deployment and manageability Leverage existing developer skills Enabled by a new programming model, WinFX™ Built on the.NET Framework Easily extend Win32 applications Enable developers to take advantage of new technologies and hardware advances Increase developer productivity Improve application security, deployment and manageability Leverage existing developer skills Enabled by a new programming model, WinFX™ Built on the.NET Framework Easily extend Win32 applications
PresentationCommunicationWorkflow Base Operating System Services TM Windows Vista Developer Architecture WindowsCommunicationFoundation WindowsPresentationFoundationWindowsWorkflowFoundation
Windows Presentation Foundation
WPF Vision Unified approach to UI, Documents, and Media Integration as part of development and experience Integrated, vector-based composition engine Utilizing the power of the PC throughout the graphics stack Declarative programming Bringing designers directly into application development Ease of deployment Allowing administrators to deploy and manage applications securely
Unified Approach to UI, Documents, and Media Integration: The Guiding Vision Application Model Composable component architecture Layout engine Two-way transformable data binding Rich visual styling and theming Browser hosting Graphics Model 2D & 3D Graphics Imaging Text Video and audio Animation Document Model Fixed, flow and adaptive layouts Advanced typography Container services Rights management Media Integration Layer Media Integration Layer Element Services Application Model Application Model Document Model Document Model Graphics Model Graphics Model Composition and Rendering.NET Framework DirectX WPF Tools and Languages
Open XML Paper Specification (XPS) Open Packaging Conventions Organized storage of a document's parts and relationships between them. Defines common services for any package:.XPS, Office Open XML Formats, 3 rd party app formats “Electronic Paper” Paginated, visual representation based on subset of Avalon XAML Core of next generation print architecture Native Avalon print output aka “Reach Package” XPS Document
Markup for Windows Build applications in simple declarative statements Can be used for any CLR object hierarchy Code and content are separate Streamline collaboration between designers and developers Easy for tools to consume and generate OK LightBlue Button b1 = new Button(); b1.Content = "OK"; b1.Background = new SolidColorBrush(Colors.LightBlue); b1.Width = 100; Dim b1 As New Button b1.Content = "OK" b1.Background = New _ SolidColorBrush(Colors.LightBlue) b1.Width = 100
Simple Sample <Window x:Class="WPFTest.TestWindow" xmlns=" xmlns=" xmlns:x=" xmlns:x=" Title="WPFTest"> Title="WPFTest"> </Button></Window>
Controls <Button><TextBox><Image><CheckBox><ComboBox><Label><ListBox><Menu><Slider><ToolBar><TreeView><Rectangle> <Canvas><ContextMenu><Line><Polygon><Polyline><Path><ProgressBar><RadioButton><Scrollbar><StatusBar><ViewBox><PasswordBox><Grid><GroupBox><MediaElement><Page><Popup><RichTextBox><Separator><TabPanel><ToggleButton><ToolTip><Ellips>
Layout <DockPanel><StackPanel><Grid><Canvas><Grid><Grid.RowDefinitions><RowDefinition/><RowDefinition/></Grid.RowDefinitions> </Grid>
Styles </Style> </Style>
Triggers </Style>
Data Binding <Window.Resources> </Window.Resources> </Grid>
New tools for designers Expression Graphic Designer - Acrylic Grafical design Vector and pixel grafics Expression Interactive Designer – Sparkle Interactiv design of Windows applications Same project structure as in Visual Studio Expression Web Designer - Quartz Interactive web solutions Real-time transformation of XSLT ”Visual Studio Extensions” – Cider Visual design of XAML Same flow as in Visual Studio
Presentations