{"id":638,"date":"2016-11-21T12:28:51","date_gmt":"2016-11-21T12:28:51","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=121"},"modified":"2016-11-21T12:28:51","modified_gmt":"2016-11-21T12:28:51","slug":"app-background-colour","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/windows-and-pages\/app-background-colour","title":{"rendered":"App Background Colour"},"content":{"rendered":"\n<p>It can be important to set the apps background colour, for instance if you are using page transitions.<\/p>\n\n\n\n<p>In App.xmal.cs add this in the&nbsp;OnLaunched() function:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\tif (rootFrame == null)\n\t{\n\t\t\/\/ Create a Frame to act as the navigation context and navigate to the first page\n\t\trootFrame = new Frame();\n\n\t\t\/\/Set the app background colour behind our page transiions\n\t\tSolidColorBrush scb = new SolidColorBrush();\n\t\tscb.Color = Windows.UI.Colors.Black;\n\t\trootFrame.Background = scb;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>It can be important to set the apps background colour, for instance if you are using page transitions. In App.xmal.cs add this in the&nbsp;OnLaunched() function:<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,67],"tags":[],"class_list":["post-638","post","type-post","status-publish","format-standard","hentry","category-transitions","category-windows-and-pages"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/638","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=638"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/638\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}