首页 > > > Microsoft_Press_ebook_Programming_Windows_Phone…

Microsoft_Press_ebook_Programming_Windows_Phone_7_PDF.pdf

Microsoft_Press_ebook_Programmi…

上传者: yidalts 2011-12-13 评分1 评论0 下载43 收藏10 阅读量831 暂无简介 简介 举报

简介:本文档为《Microsoft_Press_ebook_Programming_Windows_Phone_7_PDFpdf》,可适用于手机软件领域,主题内容包含PUBLISHEDBYMicrosoftPressADivisionofMicrosoftCorporationOneMicrosoftWayRed符等。

PUBLISHEDBYMicrosoftPressADivisionofMicrosoftCorporationOneMicrosoftWayRedmond,Washington98052-6399Copyright2010byMicrosoftCorporationAllrightsreserved.Nopartofthecontentsofthisbookmaybereproducedortransmittedinanyformorbyanymeanswithoutthewrittenpermissionofthepublisher.LibraryofCongressControlNumber:2010939982ISBN:978-0-7356-4335-2PrintedandboundintheUnitedStatesofAmerica.MicrosoftPressbooksareavailablethroughbooksellersanddistributorsworldwide.Forfurtherinformationaboutinternationaleditions,contactyourlocalMicrosoftCorporationofficeorcontactMicrosoftPressInternationaldirectlyatfax(425)936-7329.Telluswhatyouthinkofthisbookathttp://www.microsoft.com/learning/booksurvey.Microsoftandthetrademarkslistedathttp://www.microsoft.com/about/legal/en/us/IntellectualProperty/Trademark/EM-US.aspxaretrademarksoftheMicrosoftgroupofcompanies.Allothermarksarethepropertyoftheirrespectiveowners.Theexamplecompanies,organizations,products,domainnames,e-mailaddresses,logos,people,places,andeventsdepictedhereinarefictitious.Noassociationwithanyrealcompany,organization,product,domainname,e-mailaddress,logo,person,place,oreventisintendedorshouldbeinferred.Thisbookexpressestheauthor’sviewsandopinions.Theinformationcontainedinthisbookisprovidedwithoutanyexpress,statutory,orimpliedwarranties.Neithertheauthors,MicrosoftCorporation,noritsresellers,ordistributorswillbeheldliableforanydamagescausedorallegedtobecausedeitherdirectlyorindirectlybythisbook.DevelopmentalandProjectEditor:DevonMusgraveEditorialProduction:AshleySchneider,S4CarlislePublishingServicesTechnicalReviewer:PerBlomqvist;TechnicalReviewServicesprovidedbyContentMaster,amemberofCMGroup,Ltd.Cover:TomDraperDesignBodyPartNo.X17-12906iiiContentsataGlancePartITheBasics1Hello,WindowsPhone7..............................................................2PartIISilverlight2GettingOriented..........................................................................293AnIntroductiontoTouch...........................................................474Bitmaps,AlsoKnownasTextures.............................................625SensorsandServices...................................................................806IssuesinApplicationArchitecture...........................................1037XAMLPowerandLimitations...................................................1388ElementsandProperties...........................................................1659TheIntricaciesofLayout..........................................................19210TheAppBarandControls........................................................23211DependencyProperties.............................................................29612DataBindings.............................................................................33813VectorGraphics..........................................................................39314RasterGraphics..........................................................................46115Animations.................................................................................50816TheTwoTemplates...................................................................57817ItemsControls............................................................................64118PivotandPanorama..................................................................712ivPartIIIXNA19PrinciplesofMovement............................................................75020TexturesandSprites..................................................................77521DynamicTextures......................................................................79922FromGesturestoTransforms..................................................84023TouchandPlay...........................................................................90024TiltandPlay...............................................................................952vTableofContentsIntroduction.................................................................................xiiPartITheBasics1Hello,WindowsPhone7...............................................................2TargetingWindowsPhone7...........................................................................2TheHardwareChassis......................................................................................4SensorsandServices........................................................................................6File|New|Project...........................................................................................7AFirstSilverlightPhoneProgram..................................................................8TheStandardSilverlightFiles........................................................................10ColorThemes..................................................................................................17PointsandPixels.............................................................................................18TheXAPisaZIP..............................................................................................20AnXNAProgramforthePhone...................................................................212GettingOriented..........................................................................29SilverlightandDynamicLayout....................................................................29OrientationEvents..........................................................................................36XNAOrientation.............................................................................................38SimpleClocks(VerySimpleClocks)..............................................................413AnIntroductiontoTouch...........................................................47Low-LevelTouchHandlinginXNA...............................................................47TheXNAGestureInterface............................................................................51Low-LevelTouchEventsinSilverlight..........................................................52TheManipulationEvents...............................................................................56RoutedEvents.................................................................................................59SomeOddBehavior?......................................................................................614Bitmaps,AlsoKnownasTextures..............................................62XNATextureDrawing....................................................................................63TheSilverlightImageElement......................................................................65ImagesViatheWeb.......................................................................................66ImageandImageSource................................................................................70LoadingLocalBitmapsfromCode................................................................71viCapturingfromtheCamera..........................................................................73ThePhone’sPhotoLibrary............................................................................765SensorsandServices...................................................................80Accelerometer.................................................................................................80ASimpleBubbleLevel...................................................................................86GeographicLocation......................................................................................91UsingaMapService.......................................................................................956IssuesinApplicationArchitecture...........................................103BasicNavigation..........................................................................................103PassingDatatoPages.................................................................................110SharingDataAmongPages........................................................................112RetainingDataacrossInstances................................................................117TheMultitaskingIdeal................................................................................120TaskSwitchingonthePhone.....................................................................120PageState.....................................................................................................122IsolatedStorage...........................................................................................126XnaTombstoningandSettings..................................................................130TestingandExperimentation.....................................................................136PartIISilverlight7XAMLPowerandLimitations...................................................138ATextBlockinCode....................................................................................139PropertyInheritance...................................................................................141Property-ElementSyntax............................................................................143ColorsandBrushes......................................................................................144ContentandContentProperties................................................................151TheResourcesCollection............................................................................154SharingBrushes...........................................................................................156x:Keyandx:Name........................................................................................159AnIntroductiontoStyles............................................................................160StyleInheritance..........................................................................................161Themes..........................................................................................................163GradientAccents.........................................................................................1638ElementsandProperties...........................................................165BasicShapes.................................................................................................165viiTransforms...................................................................................................167AnimatingattheSpeedofVideo..............................................................175HandlingManipulationEvents..................................................................177TheBorderElement.....................................................................................178TextBlockPropertiesandInlines...............................................................182MoreonImages...........................................................................................185PlayingMovies.............................................................................................188ModesofOpacity........................................................................................188Non-TiledTileBrushes................................................................................1909TheIntricaciesofLayout..........................................................192TheSingle-CellGrid.....................................................................................193TheStackPanelStack..................................................................................195TextConcatenationwithStackPanel.........................................................199NestedPanels...............................................................................................201VisibilityandLayout....................................................................................202TwoScrollViewerApplications...................................................................205TheMechanismofLayout..........................................................................211InsidethePanel...........................................................................................213ASingle-CellGridClone..............................................................................214ACustomVerticalStackPanel....................................................................218TheRetroCanvas.........................................................................................220CanvasandZIndex......................................................................................226TheCanvasandTouch................................................................................226TheMightyGrid...........................................................................................22810TheAppBarandControls........................................................232ApplicationBarIcons...................................................................................232JotandApplicationSettings......................................................................240JotandTouch..............................................................................................245JotandtheApplicationBar.........................................................................247ElementsandControls................................................................................252RangeBaseandSlider..................................................................................254TheBasicButton..........................................................................................261TheConceptofContent..............................................................................265ThemeStylesandPrecedence....................................................................270TheButtonHierarchy..................................................................................271TogglingaStopwatch.................................................................................274ButtonsandStyles.......................................................................................284viiiTextBoxandKeyboardInput.....................................................................28611DependencyProperties.............................................................296TheProblemIllustrated..............................................................................296TheDependencyPropertyDifference.......................................................299DerivingfromUserControl.........................................................................310ANewTypeofToggle................................................................................321PanelswithProperties................................................................................326AttachedProperties....................................................................................33212DataBindings.............................................................................338SourceandTarget.......................................................................................338TargetandMode.........................................................................................341BindingConverters......................................................................................343RelativeSource............................................................................................348The“this”Source.........................................................................................349NotificationMechanisms............................................................................353ASimpleBindingServer.............................................................................354SettingtheDataContext.............................................................................360SimpleDecisionMaking.............................................................................366ConverterswithProperties.........................................................................370GiveandTake...............................................................................................374TextBoxBindingUpdates...........................................................................38013VectorGraphics.........................................................................393TheShapesLibrary......................................................................................393CanvasandGrid...........................................................................................395OverlappingandZIndex.............................................................................396PolylinesandCustomCurves.....................................................................398Caps,Joins,andDashes..............................................................................403PolygonandFill...........................................................................................411TheStretchProperty...................................................................................413DynamicPolygons.......................................................................................414ThePathElement........................................................................................417GeometriesandTransforms.......................................................................423GroupingGeometries..................................................................................428TheVersatilePathGeometry.......................................................................429TheArcSegment...........................................................................................431BézierCurves................................................................................................440ixThePathMarkupSyntax............................................................................45

编辑推荐

  • 名称/格式
  • 评分
  • 下载次数
  • 资料大小
  • 上传时间

用户评论

0/200
    暂无评论
上传我的资料

相关资料

资料评价:

/ 1013
所需积分:1 立即下载
返回
顶部
举报
资料
关闭

温馨提示

感谢您对爱问共享资料的支持,精彩活动将尽快为您呈现,敬请期待!