using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Media;
namespace InABox.DynamicGrid
{
public class RichTextEditorViewModel
{
#region Constructor
public RichTextEditorViewModel()
{
AddFontFamily();
AddFontSize();
}
#endregion
#region Fields
#endregion
#region Properties
public event PropertyChangedEventHandler PropertyChanged;
///
/// Gets or Sets the font family source.
///
public List FontFamilySource { get; private set; }
///
/// Gets or Sets the font size source.
///
public double[] FontSizeSource { get; private set; }
#endregion
#region Implementation
///
/// Adds the font family.
///
private void AddFontFamily()
{
FontFamilySource = new List();
foreach (var fontfamily in Fonts.SystemFontFamilies) FontFamilySource.Add(fontfamily.Source);
}
///
/// Adds the font size.
///
private void AddFontSize()
{
FontSizeSource = new double[] { 8, 9, 10, 11, 12, 14, 16, 18, 20, 24, 26, 28, 36, 48, 72 };
}
#endregion
}
}