當我們在開發 Universal Windows Platform App 時,可能會使用本機電腦或Windows Phone進行開發,但在偵錯時在螢幕的左上角會出現一個數據欄,而這個數據欄是提供開發者App目前的運作狀況,如畫面更新率,讓開發者知道App的效能會不會影響UI(User Interface)的呈現,但若我們不需要它的時候可以怎麼做來把它隱藏或關掉呢?

什麼叫做Frame Rate Counter?
當我們在偵錯時執行應用程式會看到右上教的數據,如下圖所示,它就是Frame Rate Counter。
image

 

首先在你的UWP專案中,找到App.xaml.cs這個檔案
image

 

點開後找到Override的方法叫做OnLaunched
接著你可以找到這段程式碼

this.DebugSettings.EnableFrameRateCounter = true;

然後把他的值改成false即可

this.DebugSettings.EnableFrameRateCounter = false;

接著再運行一次UWP App ,就可以發現Frame Rate Counter已經不見囉。
image

文章中的敘述如有觀念不正確錯誤的部分,歡迎告知指正 謝謝
http://www.sukitech.com/1319/筆記-uwp-開發時隱藏左上…e-counter,方便截圖/
轉載請註明出處為SUKI開發人蔘,並且附上本篇文章網址 !  感謝。

10 Thoughts on “[筆記] UWP, 開發時隱藏左上角的數據條(Frame Rate Counter),方便截圖。

  1. A round of applause for your article post. Great.

  2. This is one awesome article post.Thanks Again. Fantastic.

  3. Really informative blog post.Really looking forward to read more. Will read on…

  4. Say, you got a nice post.Really looking forward to read more. Fantastic.

  5. Thanks a lot for the article post. Awesome.

  6. Thanks again for the blog article.Much thanks again. Awesome.

  7. I am so grateful for your blog post.Really thank you! Fantastic.

  8. A round of applause for your blog article.Thanks Again. Will read on…

  9. Thanks for sharing, this is a fantastic blog.Really looking forward to read more. Really Cool.

  10. Im grateful for the post.Thanks Again. Will read on…

發表迴響

你的電子郵件位址並不會被公開。

Post Navigation