public void Store() { foreach (var val in customFonts) { FontService.SetFont(val.Key, val.Value); } }
protected override void OnDestroyed() { foreach (var val in selectedFonts) { FontService.SetFont(val.Key, val.Value); } base.OnDestroyed(); }
protected override bool OnSetValue(FontDescription value) { FontService.SetFont(name, value.ToString()); return(true); }
public void SetFont(string fontName, string fontDescription) { customFonts [fontName] = fontDescription; FontService.SetFont(fontName, fontDescription); }