HelloWPFWindowsFormAneweventmodelCancreatecontrolStillbasedonGDI+WrapperofWin32WPFWPFuseDirectXtodrawWPF’sUIisbasedvectorMarkupLanguageProgrammingWPFAnd.NETFrameworkCLRBaseClassLibrary(BCL)WindowsFormsASP.NETADO.NETWCFWPFWFWCS.NETFramework2.0.NETFramework3.0WPFIsAPlatformOS.NETFrameworkWPFEngineBusinessLogicEventManagerRennerEnginePropertyManagerWPF&Win32WPFEngineWindows32GDIOneSimpleExampleC#XAMLTranslateXAMLToC#OKButtonbuttonOK=newButton();buttonOK.Content=“OK”;XAMLC#TranslateXAMLExistASResourceResourceCodeAssemblyMarkupExtensionOKOKOKOKMarkupExtensionCreateOurselfMarkupExtensionDependencyPropertyCommonC#ClassmyDefault=1dog1myDefault=3dog2myDefault=3dog3DependencyPropertyMyDefaultdog1MyDefaultdog2MyDefaultdog3MyDefaultInstancepointer1dog13dog23dog3…………WPFEngineAttachedPropertyDockPanelClassDefineDockInstancepointerLeftbuttonLeftTopbuttonTopRightbuttonRightBottombuttonBottom……WPFEngineButtonRoutedEventButtonChromeContentPresenterTextBlockEventWPFControlsContentControlItemsControlRangControlTextControlUILayoutCanvasStackPanelDockPanelWrapPanelGridBinaryResourceLogicResourceLogicresourceisadictionaryEveryelementcanhavelogicresourceThereisalogicroutealgorithmOneLogicResourceExampleLogicResourceArchitectureApplicationWindow1Window2window3StackPanelStackPanelButtonButtonButtonCustomControl’sAppearanceStyle(Sheet)TemplateSkinThemeStyle(Sheet)StyleislikeCSSStyleisbasedlogicresourceStyleonlydefinecontrol’spropertyTemplateTemplateisalsologicresourceTemplateredefinecontrol’sappearanceCanthinktemplateasWin32redrawOneTemplateExampleGraphThereisnoGDI+GraphisbasedDirectXDon’tneedkeepdrawstatusWhatyouseeisUIElementAnimationAnimationistomodifyelement’spropertythroughtimeWhatelseneedyoustudy?Databind3DDeployWPFapplicationAudio、Video、RichdocumentUseWin32、WinForm、ActiveXinWPFCustomControlandUserControlThat’sAll