scrol是什么意思,scrol中文翻譯,scrol發(fā)音、用法及例句
?scrol
scrol發(fā)音
英: 美:
scrol中文意思翻譯
如何提高wpf效率 轉(zhuǎn)載
WPF Performance Tips
Windows Presentation Foundation provides a very confortable way to develop rich user experiences. A drop shadow for example can added by inserting two simple lines of XML. But this simplicity can also mislead us to overuse them. This leads to performance issues. The following tipps may help you to avoid or fix them.
WPF 讓我們很容易的開(kāi)發(fā)富用戶(hù)體驗(yàn)的程序。比如陰影效果可以用兩行XML代碼實(shí)現(xiàn)。但這可能會(huì)誤導(dǎo)我們過(guò)度使用他們,而導(dǎo)致性能問(wèn)題,下面有些Tips可以幫我們改善WPF程序性能。
Dispatch expensive calls either within the UI thread with a lower DispatcherPriority by callingDispatcher.BeginInvoke() or to a background thread by using a BackgroundWorker to keep the UI responsive.
當(dāng)程序需要長(zhǎng)時(shí)間進(jìn)行后臺(tái)操作的時(shí)候,使用Dispatcher.BeginInvoke()保持程序響應(yīng)。
Fix binding errors because they consume a lot of time, trying to resolve the path error, including searching for attached properties. You can find them by looking for System.Windows.Data Error in the Visual Studio output log.
修復(fù)binding錯(cuò)誤。binding上的錯(cuò)誤會(huì)消耗很多時(shí)間,程序會(huì)試圖解決path的錯(cuò)誤,包括查找附加屬性。你可以通過(guò)ststem.windows.data.error找到binding錯(cuò)誤。
Reduce the number of visuals by removing unneeded elements, combining layout panels and simplifying templates. This keeps the memory footprint small and improves the rendering performance.
通過(guò)移出不必要的元素,合并layout panels,簡(jiǎn)化templates來(lái)減少可視化樹(shù)的層次。這可以保證第內(nèi)存使用,而改變渲染性能。
Prevent Software Rendering. The use of transparent windows by setting AllowsTransparency to true or using old BitmapEffects can cause WPF to render the UI in software on Windows XP, which is much slower.
避免使用軟件渲染。設(shè)定Windows的AllowsTransparency為true或者使用老的BitmapEffects可以導(dǎo)致WPF使用軟件渲染UI從而導(dǎo)致程序變慢。
Load resources when needed. Even thow it's the most comfortable way to merge all resources on application level it can also cost performance by loading all resources at startup. A better approach is to load only often used resources and load the other on view level.
將資源定義在使用的地方。雖然把所有資源放到應(yīng)用程序級(jí)很方便,但這樣會(huì)迫使程序在開(kāi)始時(shí)加載所有資源。更好的辦法是在用到的地方加載。
Virtualize lists and views by using a VirtualizingStackPanel as ItemsPanel for lists. This only creates the visible elements at load time. All other elements are lazy created when they get visible. Be aware that grouping or CanContextScrol="True" prevents virtualization!
使用VirtualizingStackPanel 虛擬化列表作為lists中的ItemsPanel和視圖.VirtualizingStackPanel只會(huì)在lists中的item可見(jiàn)時(shí)加載。但注意要分組和設(shè)定CanContextScrol為T(mén)rue可以組織虛擬化。
Enable Container Recycling. Virtualization brings a lot of performance improvements, but the containers will be disposed and re created, this is the default. But you can gain more performance by recycle containers by setting VirtualizingStackPanel.VirtualizationMode="Recycling"
虛擬話可以帶來(lái)很大的性能提升,但是默認(rèn)情況下容器會(huì)被重新創(chuàng)建。我們可以通過(guò)設(shè)定VirtualizingStackPanel.VirtualizationMode="Recycling" 來(lái)得到更多的性能提升。
Freeze Freezables by calling Freeze() in code or PresentationOptions:Freeze="true" in XAML. This reduces memory consumption and improves performance, because the system don't need to monitor for changes.
通過(guò)在代碼中調(diào)用Freeze()或者在Xmal中設(shè)定PresentationOptions:Freeze="true"來(lái)凍結(jié)可以?xún)鼋Y(jié)的控件。由于這樣系統(tǒng)不必**該控件的變化,所以可以帶來(lái)性能的提升。
Disable Assembly localization if you don't need it. By using the [NeutralResourcesLanguageAttribute].This prevents an expensive lookup for satelite assemblies
不太理解……高手可以幫忙翻譯。
Lower the framerate of animations by setting Storyboard.DesiredFrameRate to lower the CPU load. The default is 60 frames/second
降低動(dòng)畫(huà)的幀率。大多數(shù)動(dòng)畫(huà)不需要高幀率,而系統(tǒng)默認(rèn)為60frames/sec,所以可以設(shè)定Storyboard.DesiredFrameRate 為更低值。
Use StreamGeometries instead of PathGeometries if possible to draw complex 2D geometries, because they are much more efficient and consume less memory.
盡可能使用StreamGeometries 代替PathGeometries ,因?yàn)樗梢越档蛢?nèi)存占用,更高效。
請(qǐng)問(wèn)高達(dá)SEED的人物種子爆 叫什么招有名字嗎
叫爆種或爆豆(怎么叫隨你啦)
是新人類(lèi)在某一條件下(比如十分悲憤)力量覺(jué)醒,激發(fā)出了身體里的潛能,使能力倍增,應(yīng)該算不上是招數(shù)
與暴走類(lèi)似
本站其他內(nèi)容推薦
1、err quietude magnetopause aboriginal emergency incongruous untilled peradventure resolution sensationalism
2、夢(mèng)想做某事英語(yǔ)(dream of doing中文翻譯,dream of doing是什么意思,dream of doing發(fā)音、用法及例句)
3、usv/h,usvh縮寫(xiě)是什么意思,usvh的全稱(chēng)及含義,usvh全稱(chēng)意思大全
4、cady縮寫(xiě)是什么意思,cady的全稱(chēng)及含義,cady全稱(chēng)意思大全
5、freaky是什么意思,freaky中文翻譯,freaky發(fā)音、用法及例句
6、莖[ jīng ],莖字的拼音,部首,組詞,莖字的筆順,筆畫(huà)順序怎么寫(xiě)
9、covenant是什么意思,covenant中文翻譯,covenant怎么讀、發(fā)音、用法及例句
10、過(guò)單身生活的英文,英語(yǔ),bach是什么意思,bach中文翻譯,bach怎么讀、發(fā)音、用法及例句
版權(quán)聲明: 本站僅提供信息存儲(chǔ)空間服務(wù),旨在傳遞更多信息,不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任,不代表本網(wǎng)贊同其觀點(diǎn)和對(duì)其真實(shí)性負(fù)責(zé)。如因作品內(nèi)容、版權(quán)和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請(qǐng)發(fā)送郵件至 舉報(bào),一經(jīng)查實(shí),本站將立刻刪除。