弹出设置设计Windows 8.1

时间:2014-03-26 20:07:20

标签: caliburn.micro

Caliburn.Micro Version 2.0我可以创建一个新的Settings弹出按钮:

settingsService.RegisterFlyoutCommand<SettingsViewModel>("Custom");

如何更改或设置设置弹出按钮的Back ColorHeader

1 个答案:

答案 0 :(得分:1)

RegisterFlyoutCommand()为此目的采用viewSettings。您可以在SettingsFlyout上设置可用的属性:

var viewSettings = new Dictionary<string, object>();
viewSettings["HeaderBackground"] = new SolidColorBrush(Colors.Yellow);
settingsService.RegisterFlyoutCommand<SettingsViewModel>("Custom", viewSettings);