Professional Documents
Culture Documents
WPF
WPF
References
References
.Net 3.0
The .Net 3.0 Framework has support for three major pieces, available for Vista, XP, and Server 2003:
Windows Work Flow (WF) Windows Communication Foundation (WCF) Windows Presentation Foundation (WPF)
Basic tools (command line compilers etc) and Framework classes support these.
New, more productive, tools are coming with the Orcas release of Visual Studio, later this year.
Discussion Ive read indicates that it is oriented primarily toward implementing Business Rules.
Workflows are programmed in XAML (used to be called XOML in WF. The O stood for Object.
WCF Services
Chappell (IWCF)
Web applications
Asp.Net
Document presentation
Word Documents
Chappell (IWPF)
Chappell (IWPF)
Elements of WPF
CodeBehind
Event handler code
Applications
Controls Styling Layout Data Content Action
Presentation Framework
Driver
Features
Programming
Declarative programming with XAML Imperative programming with classes from System.Windows namespace
Presentation mode:
Layout:
Window: basic display windows NavigationWindow: hyperlinked navigation DockPanel: Flow layout like a web page StackPanel: Linear layout, ala toolbars Grid: Absolute positioning on grid Canvas: Free positioned layout
Controls:
Styles
Inline styles:
<Button style={StaticResource ButtonStyle}>a title</Button>
Documents
Typography:
Documents
Layout is fixed for rendering in any window or printer, does not flow
Lots of control over the details of how that is done through properties
Media
Images
<Image width=200 Source=C:\temp\us.jpg /> Can have metadata Can be painted onto 3D canvases
Video
<MediaElement Source=c:\temp\myVid.wmv /> Handles wmv, mpeg, avi, wav,
<Border Width="400" BorderBrush="Green" BorderThickness="9"> <StackPanel> <MediaElement Source="aero.wmv" /> <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
2D Graphics
LineGeometry, RectangleGeometry,
3D Graphics
3D Graphics
GeometryModel3D class SpecularMaterial class DiffuseMaterial class DirectionalLight AmbientLight PerspectiveCamera OrthographicCamera
Transformations
Animations
Storyboard class
Defines element(s) to which animation applies, by name Initial properties like size and position Range of changes of those properties with duration settings (time between changes)
Combining Stuff
Graphics figures, controls, animations, can be freely mixed and applied to each other.
Applications
Desktop applications
Full trust Rich, but familiar applications
Many operations are not allowed, e.g., access to local file system
May appear very like an equivalent desktop application Most of the code is the same
End of Presenation