timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

Style back button and header text in SettingsFlyout #146

Closed vondwater closed 11 years ago

vondwater commented 11 years ago

Hi,

I'm trying to edit the pointerover and pressed color of the back button in the SettingsFlyout. I thought I override the SettingsBackButtonStyle2 style in my StandardStyles.xaml but it doesn't seem to work. How can i edit the style of the back button?

In version 1.0.0 of the callisto controls I had my header title of the SettingsFlyout in another color then white. After my update to the 1.2.6 version my style has dissapeared.

I used this to populate my SettingsFlyout: var settings = new SettingsFlyout { Content = new AccountControl(), HeaderText = "MY ACCOUNT", IsOpen = true, Style = (Style)Application.Current.Resources["FlyoutText"], ContentBackgroundBrush = new SolidColorBrush() { Color = Color.FromArgb(255, 0, 0, 0) }, ContentForegroundBrush = new SolidColorBrush() { Color = Color.FromArgb(255, 255, 196, 33) }, }; In my xaml style I have:

vondwater commented 11 years ago

I'm sorry. Didn't need to post this. I have overwritten the SettingsBackButtonStyle2 style in the Generic.Xaml file.

Problem solved!

timheuer commented 11 years ago

One thing to keep in mind is this doesn't really align with the consistency in UI guidelines...which is why I didn't make it easy to change these.