當我們在開發 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開發人蔘,並且附上本篇文章網址 !  感謝。

49 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…

  11. Very neat blog post. Cool.

  12. Say, you got a nice article. Awesome.

  13. Muchos Gracias for your blog article.Much thanks again. Great.

  14. This is one awesome article post.Thanks Again. Really Great.

  15. Looking forward to reading more. Great blog article. Want more.

  16. Say, you got a nice article.Much thanks again. Want more.

  17. Major thanks for the article. Really Cool.

  18. Really informative blog article.Thanks Again. Keep writing.

  19. I loved your article.Really looking forward to read more. Want more.

  20. Appreciate you sharing, great blog post. Want more.

  21. Say, you got a nice blog post.Really thank you! Really Great.

  22. I really enjoy the article.Really thank you! Really Great.

  23. Very informative blog post.Really looking forward to read more.

  24. Really enjoyed this article post. Really Great.

  25. Have you ever thought about creating an e-book or guest authoring on other websites?
    I have a blog centered on the same information you discuss and
    would love to have you share some stories/information. I know my readers would enjoy your work.

    If you’re even remotely interested, feel free to
    send me an e mail.

  26. Definitely believe that which you stated. Your favorite reason seemed to be
    on the net the simplest thing to be aware of. I say to you, I certainly get annoyed while people think about
    worries that they just do not know about. You managed to hit the nail upon the
    top as well as defined out the whole thing without having
    side-effects , people can take a signal. Will likely be back to get more.
    Thanks

  27. What’s up, just wanted to tell you, I liked this post.
    It was practical. Keep on posting!

  28. Hi, I do believe this is an excellent website. I stumbledupon it 😉
    I may come back once again since i have bookmarked it.

    Money and freedom is the best way to change, may you be rich and
    continue to guide others.

  29. Great, thanks for sharing this post.Really thank you! Fantastic.

  30. Very informative article post.Much thanks again. Will read on…

  31. You ought to be a part of a contest for one of the most useful blogs online.
    I’m going to recommend this web site!

  32. Awesome blog post.Thanks Again. Really Cool.

  33. Say, you got a nice article. Cool.

  34. I truly appreciate this post.Really looking forward to read more. Really Great.

  35. Thanks for the good writeup. It in reality was a amusement account it.
    Look complex to more brought agreeable from you! However, how could we keep in touch?

  36. magnificent issues altogether, you simply won a new reader.
    What would you recommend about your put up that you
    simply made a few days ago? Any certain?

  37. Touche. Great arguments. Keep up the amazing spirit.

  38. It’s perfect time to make a few plans for the longer term and it’s time
    to be happy. I’ve read this submit and if I could I wish to suggest you
    few attention-grabbing things or advice. Maybe you can write next articles regarding
    this article. I desire to read more issues approximately it!

  39. Hmm it looks like your website ate my first comment (it was super long) so I guess I’ll just sum it up what I wrote
    and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I’m still new
    to everything. Do you have any tips for rookie blog writers?
    I’d genuinely appreciate it.

  40. Good article! We will be linking to this great post on our site.
    Keep up the good writing.

  41. Do you have a spam issue on this site; I also am a blogger,
    and I was wanting to know your situation; we have
    developed some nice procedures and we are looking to exchange techniques with others, why not shoot me an email
    if interested.

  42. I’m gone to convey my little brother, that he should also go to see this web site on regular basis to
    take updated from newest news update.

  43. I am really inspired with your writing skills as smartly as
    with the format on your blog. Is that this a
    paid topic or did you modify it yourself? Anyway keep up the excellent high quality writing, it is rare to see a great weblog like this one nowadays..

  44. It’s a pity you don’t have a donate button! I’d certainly donate
    to this fantastic blog! I guess for now i’ll settle for book-marking and
    adding your RSS feed to my Google account. I look forward to brand new updates
    and will talk about this website with my Facebook
    group. Chat soon!

  45. Thanks , I have recently been looking for information about this subject for a
    long time and yours is the best I’ve found out till now.
    But, what in regards to the conclusion? Are you certain about
    the supply?

  46. Hi, just wanted to tell you, I enjoyed this article. It was funny.
    Keep on posting!

  47. I’m not sure why but this web site is loading incredibly slow for
    me. Is anyone else having this issue or is it a issue on my end?
    I’ll check back later on and see if the problem still exists.

發表迴響

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

Post Navigation