Jump to: navigation, search

Changes


Icon Font

571 bytes added, 10:00, 30 January 2020
Added how-to directly accessing icons
<br>
====In-AppName App Name Usage:====
In the below example, <code>Glyph="{x:Static resources:UBIKIcons.User}"</code> is used to call the <I>User</I> symbol.
<syntaxhighlight lang="xml">
<br>
====Hex Code Usage:====
In the below example, the attribute <code>Glyph=</code> and the following Hex Code is used to call the <I>User</I> icon. These Hex codes can be found using a Character Map program, or by searching through the icon tables below.
<controls:GlyphLabel Glyph="&#x22;" HorizontalOptions="Center" />
</syntaxhighlight>
 
====Directly Accessing Icons====
The icons can also be used like every other font by setting the <code>FontFamily</code> attribute. For example:
 
<syntaxhighlight lang="xml">
<ContentView
xmlns:resources="clr-namespace:UBIK.CPL.Resources;assembly=UBIK.CPL">
<Label HorizontalOptions="Center"
HorizontalTextAlignment="Center"
Text="{x:Static resources:UBIKIcons.User}"
FontFamily="{x:Static UBIKSymbols}"
VerticalOptions="Center"
VerticalTextAlignment="Center" />
 
<!-- ... -->
 
</ContentView>
</syntaxhighlight>
 
==Icon Tables==
187
edits