Skip to content

tablesmit/WpfColorFont

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wpf Color/Font Dialog

A wpf color and font picker based on a project by Alessio Saltarin.

Available on NuGet

usage:

      //We can pass a bool to choose if we preview the font directly in the list of fonts.
        Bool previewFontInFontList = true;
        ColorFontDialog dialog = new ColorFontDialog(previewFontInFontList);
        dialog.Font = FontInfo.GetControlFont(MyTextBox);
        
        if (dialog.ShowDialog() == true)
        {
            FontInfo font = dialog.Font;
            if (font != null)
            {
                FontInfo.ApplyFont(MyTextBox, font);
            }
        }

Example

About

A WPF font and color dialog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%