資源描述:
《現(xiàn)代軟件技術(shù)實(shí)驗(yàn)指導(dǎo)書(shū)》由會(huì)員上傳分享,免費(fèi)在線(xiàn)閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、《現(xiàn)代軟件技術(shù)》課程實(shí)驗(yàn)指導(dǎo)書(shū)使用說(shuō)明《現(xiàn)代軟件技術(shù)》課程實(shí)驗(yàn)指導(dǎo)帖(以下簡(jiǎn)稱(chēng):指導(dǎo)書(shū))是針對(duì)計(jì)算機(jī)學(xué)院所開(kāi)設(shè)的對(duì)應(yīng)課程的上機(jī)實(shí)驗(yàn)而編寫(xiě)的教學(xué)文件,供學(xué)生上機(jī)實(shí)驗(yàn)時(shí)使用。上機(jī)的工作環(huán)境要求:Windows7或以上操作系統(tǒng)、VisualStudio.Net2010或以上版本的應(yīng)用程序,SQLServer2005數(shù)據(jù)庫(kù)或以上版木、WindowsPhone7Toolkit7.0或以上版木。學(xué)生應(yīng)按指導(dǎo)教師的要求獨(dú)立完成實(shí)驗(yàn),并按要求撰寫(xiě)實(shí)驗(yàn)報(bào)告(應(yīng)包含實(shí)驗(yàn)核心程序、實(shí)驗(yàn)過(guò)程和結(jié)果屮的關(guān)鍵圖片)。二、實(shí)驗(yàn)說(shuō)明1、實(shí)驗(yàn)一:Animateas
2、hape實(shí)驗(yàn)類(lèi)別:基本性實(shí)驗(yàn)實(shí)驗(yàn)學(xué)時(shí):4分組人數(shù):1人/組實(shí)驗(yàn)具體內(nèi)容如下:(1)IdentifyingthePropertytoAnimateInthisexample,youfreanimatingtheOpacitypropertyofaRectangle?Youdonfthavetodeclarethepropertyyouwanttoanimateontheobjectitself.However,youtypicallynametheobjectthatyouwanttoanimate?Namingtheobjectm
3、akesiteasiertospecifywhichobjectisbeingtargetedbytheanimation.ThefollowingXAMLshowshowtonametheRectangleMyAnimatedRectangle.(2)CreatingaStoryboardandMakingitaResourceAStoryboardisthecontainerthatyouputanimationobjectsinto.YouhavetomaketheStoryBoardaresourcethatisavail
4、abletotheobjectthatyouwanttoanimate?ThefollowingXAMLshowshowtomaketheStoryBoardaresourceoftherootelement,whichisaStackPaneL(3)AddinganAnimationObjecttotheStoryboardBecausethevalueofthepropertyyouareanimating(Opacity)usesadouble,thisexampleusestheDoubleAnimationobject.
5、Ananimationobjectspecifieswhatisanimatedandhowthatanimationbehaves.ThefollowingXAMLshowshowtheDoubleAnimationisaddedtotheStoryBoard?(4)StartingtheAnimationAcommonwaytostartananimationisinresponsetoanevem.Inthisexample,theMouseLeftButtonUpeventisusedtobegintheanimation
6、whentheusertapstheRectangle.(5)AnimatingaColorPropertyThepreviousexampleshowedhowtoanimateapropertythatusedavalueofdouble?What訐youwanttoanimateaColor?SilverlightforWindowsPhoneprovidesanimationobjectsthatareusedtoanimateothertypesofvalues?Thefollowingbasicanimationobj
7、ectsanimatepropertiesofdouble,Color,andPoint,respectively.2>實(shí)驗(yàn)二:UsingMVVMpatterntorealizeacustomermanagementsystem實(shí)驗(yàn)類(lèi)別:設(shè)計(jì)性實(shí)驗(yàn)實(shí)驗(yàn)學(xué)時(shí):6分組人數(shù):1人/組實(shí)驗(yàn)具體內(nèi)容如下:(1)CreatingtheDataModelThemodelisasingleclassnamedAccomplishment.TheAccomplishmentclassimplementstheINotifyPropertyChang
8、edinterfaceandthePropertyChangedevent.Thisallowstheclasstonotifyitsviewswhenapropertyvaluechanges,andthentheviewscanupdateth