Created
December 26, 2021 06:42
-
-
Save emoacht/3123253a45d8b4b3f7a7a96cc0b9af48 to your computer and use it in GitHub Desktop.
Sample TextBox for font glyphs with symbols
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This window looks as follows.