This is a migrated thread and some comments may be shown as answers.

Glyphs with implicit styles

1 Answer 207 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 22 Sep 2017, 06:42 AM

I was reading about using glyphs the other day and it sounds very interesting, but it's not clear from any of the documentation how to use them with implicit styles. 

 

The overview page says "In order to use the glyph references and the font as StaticResources in a project, you need to include the Telerik.Windows.Controls.dll and merge the required dictionary in the application resources.", but I am using all "no xaml" files, so I'm not really sure how those things fit together.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 22 Sep 2017, 12:41 PM
Hello Steve,

The glyphs from the TelerikWebUI are available in both xaml and no-xaml scenarios. The merging of the resource dictionary in the App.xaml that is mentioned in the article is to enable the usage of the font file from the assembly via {StaticResource TelerikWebUI} and the usage of the glyphs via meaningful key references instead of the Unicode character number representations. Both the font file and the dictionary with the glyphs key-value pairs are included in the Telerik.Windows.Controls.dll (WPF) regardless whether it is xaml or no-xaml variation.

We have chosen this way of usage to enable the easier redistribution of the glyphs and the applications that choose to use them, since it dismisses the need for the font to be installed on the local machine where the application is built/run and the meaningful names make it easier for the developer to know what icon is being used. Similarly, the web-based font glyphs use a CDN to distribute the font file and a .css file that provides classes which give meaningful names for each of the glyphs. Also the dictionary for the glyphs and the font file are in one of the core assemblies, so they would be available for usage in any scenario, regardless of theming preferences.

Regards,
Martin
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.
Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or