Hello, I want to make a font change in FixedHtmlTextBlock. And I decided to create 2 different Data Template, one by default (with a font size of 20), and the other will be selected in the settings (with a size of 25). The problem is the following: when I save an enlarged font, when I switch to another page and back, the font remains enlarged, and when I close the application and I go again, the setting of the enlarged font is not saved.
Receiving settings:
public Section1Detail() { InitializeComponent(); // Размер текста if (IsolatedStorageSettings.ApplicationSettings.Contains("TextSize")) { Container.ItemTemplate = (DataTemplate)(IsolatedStorageSettings.ApplicationSettings["TextSize"]); } } Saving settings:
Container.ItemTemplate = (DataTemplate)this.Resources["Large"]; IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings; if (!settings.Contains("TextSize")) { settings.Add("TextSize", Container.ItemTemplate); } else { settings.Remove("TextSize"); settings.Add("TextSize", Container.ItemTemplate); } settings.Save();