{"id":8113,"date":"2020-04-16T20:59:24","date_gmt":"2020-04-16T20:59:24","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=8113"},"modified":"2020-04-16T20:59:24","modified_gmt":"2020-04-16T20:59:24","slug":"uwp-transparent-title-bar","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/uwp-transparent-title-bar\/","title":{"rendered":"UWP Transparent title bar"},"content":{"rendered":"<p>In the last post I extended the view into the title bar on a UWP application, which looks great with the NavigationView or the likes. <\/p>\n<p>However, if you then place a view, such as a SplitView, on the right of the screen the title bar buttons (minimize, maximize and close) will appear in a different colour (if using the default colours).<\/p>\n<p>So we can make the button backgrounds transparent like this<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nvar titleBar = ApplicationView.GetForCurrentView().TitleBar;\r\ntitleBar.ButtonBackgroundColor = Colors.Transparent;\r\ntitleBar.ButtonInactiveBackgroundColor = Colors.Transparent;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In the last post I extended the view into the title bar on a UWP application, which looks great with the NavigationView or the likes. However, if you then place a view, such as a SplitView, on the right of the screen the title bar buttons (minimize, maximize and close) will appear in a different [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[230],"tags":[],"class_list":["post-8113","post","type-post","status-publish","format-standard","hentry","category-uwp"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/8113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=8113"}],"version-history":[{"count":2,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/8113\/revisions"}],"predecessor-version":[{"id":8115,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/8113\/revisions\/8115"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=8113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=8113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=8113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}