private void InitSettings() { SettingsEntry privacyEntry = new SettingsEntry("Privacy", new PrivacyPanelPage(), FlyoutDimension.Narrow); SettingsContractWrapper privacyWrapper = new SettingsContractWrapper( (Brush)App.Current.Resources["ApplicationForegroundThemeBrush"], (Brush)App.Current.Resources["ApplicationPageBackgroundThemeBrush"], (Brush)App.Current.Resources["ApplicationPageBackgroundThemeBrush"], new BitmapImage(new Uri("ms-appx:/Assets/30x30.png")), privacyEntry); }
private void InitSettings() { SettingsEntry privacyEntry = new SettingsEntry("Privacy", new PrivacyPanelPage(), FlyoutDimension.Narrow); SettingsContractWrapper privacyWrapper = new SettingsContractWrapper( (Brush)App.Current.Resources["ApplicationForegroundThemeBrush"], (Brush)App.Current.Resources["ApplicationPageBackgroundThemeBrush"], (Brush)App.Current.Resources["ApplicationPageBackgroundThemeBrush"], new BitmapImage(new Uri("ms-appx:/Assets/30x30.png")), privacyEntry); }
// IMPORTANT you want to put this method in your App.cs and call it from your apps constructor! private void InitSettings() { // make settings entries // first make a pretty normal settings entry, using the SettingsPanel control // this control contains a button that opens a file picker.. SettingsEntry optionsEntry = new SettingsEntry("Options", new SettingsPanelPage(), FlyoutDimension.Narrow); // set up the two entries with the settings contract wrapper SettingsContractWrapper wrapper = new SettingsContractWrapper( (Brush)App.Current.Resources["ApplicationForegroundThemeBrush"], //the foreground color of all flyouts (Brush)App.Current.Resources["ApplicationPageBackgroundThemeBrush"], //the background color of all flyouts (Brush)App.Current.Resources["ApplicationPageBackgroundThemeBrush"], //the theme brush of the app new BitmapImage(new Uri("ms-appx:/Assets/SmallLogo.png")), optionsEntry); }