Bad-to-the-bone WPF (Windows Presentation Foundation) casey chesnut brains-N-brawn.com Madison .NET 11/06Slide 2
Source Fundamental demos http://www.brains-n-brawn.com/curios/HardcoreWPF.zip/backRow demo http://www.brains-N-brawn.com/backRow/Slide 3
Which of these might you want to see? brains-N-brawn.com Pervasive Computing Tablet PC (MVP 03) Compact Framework (MVP 04) Advanced Web Services (MVP 05) Media Center (MVP 06) Speech Location Based Services Artificial Intelligence 3DSlide 4
OUTLINE Overview Fundamentals â demos! Application Models/backRow demo!Slide 5
OUTLINE : OverviewSlide 6
Which of these have you worked with? Presently GDI (20 years), GDI+, WinForms DirectX (11 years), Direct3D Quartz, DirectShow (8 years) Problems Showing their age Each API is diverse Mixing APIs is testingSlide 7
Next Gen WPF â replaces GDI Direct3D â expansive amusements, utilized by WPF Media Foundation â eventually will substitute DirectShow MCML âmarkup dialect for Media Center Edition applications XNA â little recreationsSlide 8
WPF Compositing UI, Documents, Media, 3D, Browser, â¦ Declarative programming with XAML markup For Designers and Developers Rewritten without any preparation Built on top of Direct3D Hardware quickened Vector based Resolution autonomous (1/96 inch) Retained illustrationsSlide 10
Platforms Vista XP SP2 Server 2003 SP1 Renders the same on every Remote Desktop transport Subsets of WPF (XPS, WPF/E) will make it to different stagesSlide 11
Tiers Tier 2 â DirectX 9, Shader 2.0, 128 megs feature ram (equipment rendering) Tier 1 â DirectX 7, 32 megs feature ram (blended hw/sw rendering) Tier 0 â beneath (programming rendering) Defaults to 60 fps Anti-associatingSlide 12
Timeline Pillar of .NET 3.0 Class libraries based on .NET 2.0 WPF, WCF, WF, InfoCard Past Release Candidate Go-live licenses accessible Released with Vista âOrcasâ, .NET 3.X coming after thatSlide 13
Installation Visual Studio 2005 .NET 3.0 (pre-introduced with Vista) Runtime Windows SDK MSBuild, XAMLPad, tests Orcas augmentation for VS 2005 Visual architect, diagrams, venture formatsSlide 14
XAMLPad Microsoft Expression Interactive Designer Tools Windows SDK XAMLPad, Perforator, UISpy, XPS Conformance, WICExplorer VS 2005 Orcas Extensions (beta) Electric Rain Zam 3D Mobiform Aurora Microsoft Expression Graphics Designer Interactive Designer âOrcasâ, CiderSlide 15
OUTLINE : Fundamentals XAML, Application, Navigation, Layout, Content, Data Binding, Dependency Property, Styles, Templates, Controls, Events, Shapes, Documents, Imaging, BitmapEffects, Animation, Media, Brushes, 3DSlide 16
HelloWorldXamlPage HelloWorldCodePage XAML Declarative article instantiation Not select to WPF Separates UI and rationale Common dialect for Designers and Developers Parallel improvement Localization, Branding Targeted UI (gadgets, clients, â¦) Tool bolster Supports C# and VB.NETSlide 17
VS.NET WPF application starting with no outside help DragDrop Cider controls from Toolbox Application Global Message taking care of App occasions (e.g. startup, shutdown) NavigationService Properties gathering StartupUriSlide 18
XamlSyntax XAML Object components, Attribute language structure Property components, Abbreviated grammar Content punctuation Attached properties, Attached occasions Markup augmentations Binding sentence structure, Resource linguistic structure Xml Namespaces Code-behind versus Inline versus Code-justSlide 19
MainWindowTransparency Window NavigationWindow PageSlide 20
http://localhost/PageNavigation/PageNavigation.xbap Navigation NavigationWindow and Frame Hyperlink NavigationService URI, piece bolster Events Journal PageFunctionsSlide 21
Events RoutedEvents Tunneling (Preview*) and Bubbling ElementTree Stylus support for Tablet PCs Attach handler in XAML or Code Styles/Templates can deal with occasions Bind to component with Name or x:NameSlide 22
PanelLayout Layout Dynamic estimating and situating Panels are key Grid, StackPanel, DockPanel, WrapPanel, Canvas, â¦ Alignment Stretch (Size to compartment) Left, Right, Center (Size to substance) Margin (parent) and Padding (substance) Overflow Clip, Wrap, Scroll, ScaleSlide 23
ToolTip Content Rich Content ContentControl HeaderedContentControl ItemsControl HeaderedItemsControlSlide 24
InteropWinForm Interop HwndSource, HwndHost Interops with WinForms, Win32, DirectX, â¦ ActiveX interop is through WinForms interop Cannot share airspace so compositing won\'t workSlide 25
TwoWayBinding Data Binding Data models : XML, Objects, DataSets, WCF, LINQ, â¦ Binding grammar DependencyProperty DataContext, DataTemplate INotifyPropertyChanged, INotifyCollectionChanged Modes : OneTime, OneWay, TwoWay, OneWayToSourceSlide 26
DependencyProperty Value relies on upon some other property User for DataBinding, Styles, Animation, â¦ Validation Inheritance AttachedProperties Default valuesSlide 27
StyledButton Styles Similar to CSS Resources Setters Triggers Inheritance â¦ Templates â¦ AnimationSlide 28
TemplateButton Templates Controls are based in light of their usefulness The default layout can be changed to drastically change how the control renders The objective is to abstain from needing to make client drawn controlsSlide 29
VS.NET Toolbox Controls Comes with an arrangement of standard arrangement of regular controls for UI UserControl Simple reusable control Similar to application advancement Control Provides templating For reuse between numerous applicationsSlide 30
Shapes 2D Geometric Shapes Ellipse Line Path Polygon Polyline RectangleSlide 31
FlowDocument File â Print - XPS Documents Flow versus Fixed (XPS) Packaging Document seeing Typography ClearType OpenFont Font can be conveyed with an Application Printing AnnotatingSlide 32
Imaging BMP, JPEG, PNG, TIFF, WDP, GIF, ICON BitmapFrame Rotation Image, BitmapImage for XAML CroppedBitamp, FormatConvertedBitmap Clipping Stretching MetadataSlide 33
BitmapEffect Applied to Visuals Can be anchored Blur OuterGlow DropShadow Bevel EmbossSlide 34
AnimatedButton Animation Dependency Properties Animation Types : Double, Color, String, Point, Int32, Path, â¦ Targets : From, To, By Time based : term, redundancy, begin times, â¦ Storyboards : delaying, halting, resume Key-Frame supportSlide 35
MediaInk Media Audio VideoSlide 36
Brushes SolidColorBrush Gradients LinearGradientBrush RadialGradientBrush ImageBrush DrawingBrush â vector and bitmap VisualBrush â any Visual!Slide 37
ThreeD 3D Basic 3D Support Viewport3D Cameras Models Materials Lights Transforms Hit Testing AnimationsSlide 38
OUTLINE : App Models Loose XAML Windows Application XBAP/WBA WPF/E XPSSlide 39
Loose XAML with no code Opens in IE Can be powerfully createdSlide 40
Applications Windows application EXE with a Window or NavigationWindow Installed Offline and Online Full get toSlide 41
XBAP/WBA Hosted in a program, IE6 or more Other programs, FireFox with a plugin Online just Internet zone authorizations Embed in website page utilizing IFrame Cannot interface with facilitating page Media Center, Sidebar GadgetsSlide 42
WPF/E Multiple programs Browsers IE5.5+, Mozilla, Firefox, Opera, Safari Multiple stages MS : Win2K+, MAC OS X 10 3 rd party : Linux, Solaris Multiple gadgets Desktop, PPC, SPSlide 43
WPF/E Subset of WPF e.g. no 3D Shooting for 2 meg runtime introduce Object tag for installing in HTML WPF + JScript, IL Public beta bits are late (Q3 06), program discharge (1 st half 07), gadget bolster (2 nd half 07)Slide 44
XPS XML Paper Specification Subset of WPF Fixed changeless design Zip position with assets Viewers can be ported to different stages Open bundle determination XPS Vista printer spool groupSlide 45
OUTLINE :/backRow Demo brains-N-brawn.com/backRow/Slide 46
Resources Books Applications = Code + Markup Programming Windows Presentation Foundation XAML in a Nutshell Forum Windows Presentation Foundation ("Avalonâ) Newsgroup microsoft.public.windows.developer.winfx.avalonSlide 47
Resources Webcasts http://sessions.mix06.com eLearning Developing Rich Experiences with Microsoftâ® .NET Framework 3.0 and Visual Studioâ® 2005 Samples C:\Program Files\Microsoft\SDKs\Windows\v6.0\Samples\WPFSamples.zipSlide 48
Resources Sites http://wpf.netfx3.com/WPF Windows SDK Documentation My Five Day Course For Hitting the WPF Curve/Cli
Windows CE .net SDK Miro Juric Programming Plan Engineer/Test Microsoft Presentation Diagram of ...
802.1X in Windows Tom Rixom Alfa and Ariss Diagram 802.1X/EAP 802.1X in Windows Burrowed Confirm ...
BBBT-04 Fundamental Small scale process and PC Operation Lesson No: 6 Prologue to Windows XP MIC ...
Building Windows Applications with HTML and CFML By Steve Nelson SecretAgents.com Review Band Ou ...
Main 10 Controls to Review in Windows Server Randy Franklin Smith, CISA, SSCP, Security MVP Mont ...
mIRC in Windows by Byung Lee mIRC in Windows What is mIRC? Necessities for mIRC Introducing mIRC ...
WINDOWS Inserted Understudy CHALLENGE Rivalry Juan E. Vargas, Ph. D. ( email@example.com ) Sch ...
WinFX – A Lap Around the Windows Presentation Establishment Bart J.F. De Smet MVP Visual C# in ...
Blend of transport and web layer conventions. TCP/IP is one and only probability. IPX/SPX for No ...
The BIOS finds the first part of the first hard commute which contains the Master Boot ... On th ...
Associate with corporate email with Outlook on the Phone, keep individual and business email sep ...
Coordinates components of Windows 9x and 2000. Included backing for media and systems administra ...
70-270: MCSE Guide to Microsoft Windows XP Professional Second Edition, Enhanced Chapter 13: Boo ...
Visual Studio 2008 presented a variety of new components went for an extensive variety of ... al ...
Best Practices for Performance of Oracle Database for Windows. Alex Keh Principal Product Ma ...
Backup And Restore In Windows Vista And Windows Server Longhorn. Dan Stevenson Lead Program M ...
SAC-852F. Introduction to Windows Azure: the cloud operating system. Mark Russinovich Techn ...
PLAT-874T. Lap around the Windows Runtime. Martyn Lovell Development Manager, Windows Run ...