//Constructor public HomeworkViewerItem() { InitializeComponent(); colors = Global.userData.settings.colors; fonts = Global.userData.settings.fonts; menu = this.FindResource("Menu") as ContextMenu; highlighted = false; EventsManager.ColorsSettingsChanged += OnColorsSettingsChanged; EventsManager.FontsSettingsChanged += OnFontsSettingsChanged; }
private void OnFontsSettingsChanged(FontsSettings newFonts) { fonts = newFonts; }