In its handler you could iterate all RadDocument Styles and Spans and if their FontFamily is Museo change it to Arial. Here is a code snippet demonstrating how to change all spans and styles that have "Comic Sans MS" FontFamily to use "Arial" FontFamily:
foreach (StyleDefinition sd in doc.StyleRepository.Where(sd => sd.SpanProperties.FontFamily.Source == "Comic Sans MS"))
{
sd.SpanProperties.FontFamily = new FontFamily("Arial");
}
foreach (Span sp in doc.EnumerateChildrenOfType<Span>().Where(sp => sp.FontFamily.Source == "Comic Sans MS"))
{
sp.FontFamily = new FontFamily("Arial");
}
if (doc.Style.SpanProperties.FontFamily.Source == "Comic Sans MS")
{
doc.Style.SpanProperties.FontFamily = new FontFamily("Arial");
}
}
Hope this helps.
Regards,
Polya
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.