Skip to content

Instantly share code, notes, and snippets.

@emoacht
Created December 26, 2021 06:42
Show Gist options
  • Save emoacht/3123253a45d8b4b3f7a7a96cc0b9af48 to your computer and use it in GitHub Desktop.
Save emoacht/3123253a45d8b4b3f7a7a96cc0b9af48 to your computer and use it in GitHub Desktop.
Sample TextBox for font glyphs with symbols
<Window x:Class="WpfFontGlyph.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"
SizeToContent="Height" Height="100" Width="480">
<StackPanel>
<Grid Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<TextBox Grid.ColumnSpan="2"
Text="0ay/AÁÊÑÖ 0ay/AÁÊÑÖ"
FontFamily="Verdana" FontSize="36"
Padding="3"
VerticalContentAlignment="Center"/>
<Rectangle Grid.Column="0"
Stroke="DarkViolet" StrokeThickness="1" StrokeDashArray="1 3"
VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
<Rectangle Grid.Column="1"
Stroke="Red" StrokeThickness="1" StrokeDashArray="1 3"
VerticalAlignment="Center" Margin="0,3,0,0" HorizontalAlignment="Stretch"/>
</Grid>
</StackPanel>
</Window>
@emoacht
Copy link
Author

emoacht commented Dec 26, 2021

This window looks as follows.

FontGlyph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment