{"id":1104,"date":"2021-05-18T14:27:35","date_gmt":"2021-05-18T13:27:35","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=1104"},"modified":"2021-05-18T14:27:35","modified_gmt":"2021-05-18T13:27:35","slug":"screen-resolution","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/windows-and-pages\/screen-resolution","title":{"rendered":"Screen resolution"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Get the screen resolution<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tvar bounds = ApplicationView.GetForCurrentView().VisibleBounds;\n\tvar scaleFactor = DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel;\n\tvar ScreenResolution = new Size(bounds.Width*scaleFactor, bounds.Height*scaleFactor);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Get the screen resolution<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[],"class_list":["post-1104","post","type-post","status-publish","format-standard","hentry","category-windows-and-pages"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/1104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=1104"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/1104\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=1104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=1104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=1104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}