Created
May 7, 2013 03:59
-
-
Save kimsk/5530168 to your computer and use it in GitHub Desktop.
Customize HeaderBackground (http://cyanbyfuchsia.wordpress.com/2013/04/29/winrt-settings-with-caliburn-micro/)
This file contains hidden or 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
protected override void Configure() | |
{ | |
_container = new WinRTContainer(); | |
_container.PerRequest<MainViewModel>() | |
.PerRequest<AboutViewModel>(); | |
var viewSettings = new Dictionary<string, object>(); | |
viewSettings.Add("headerbackground", new SolidColorBrush(Colors.Red)); | |
var settings = _container.RegisterSettingsService(); | |
settings.RegisterCommand<AboutViewModel>("Custom", viewSettings); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment