Created
May 14, 2017 23:45
-
-
Save colinkiama/91d5ccdb1260ca2885c8e7e4fdb5cda2 to your computer and use it in GitHub Desktop.
finalDeviceSpecificCodeSolution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var qualifiers = Windows.ApplicationModel.Resources.Core.ResourceContext.GetForCurrentView().QualifierValues; | |
if (qualifiers.ContainsKey("DeviceFamily") && qualifiers["DeviceFamily"] == "Desktop") | |
{ | |
ApplicationViewTitleBar formattableTitleBar = appView.TitleBar; | |
formattableTitleBar.ButtonBackgroundColor = Colors.Transparent; | |
CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar; | |
coreTitleBar.ExtendViewIntoTitleBar = true; | |
appView.SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment