Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ListBox Name="lbInstalledFonts" VerticalContentAlignment="Center" DisplayMemberPath="Name" ItemsSource="{Binding Source={new System.Drawing.Text.InstalledFontCollection().Familes}}" />
- <Window x:Class="HelpStackOverflow.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:drawing="clr-namespace:System.Drawing.Text;assembly=System.Drawing"
- Title="MainWindow" Height="350" Width="525">
- <Window.Resources>
- <drawing:InstalledFontCollection x:Key="InstalledFontCollection" />
- </Window.Resources>
- <Grid>
- <ListBox Name="lbInstalledFonts"
- VerticalContentAlignment="Center"
- DisplayMemberPath="Name"
- ItemsSource="{Binding Source={StaticResource InstalledFontCollection}, Path=Families}" />
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement