private void AddStyleColumn(FontStyleData fontStyle, GridView gridView)
 {
     DataTemplate dataTemplate = (DataTemplate) XamlReader.Parse(string.Format(DATA_TEMPLATE_TEMPLATE, fontStyle.FontWeight, fontStyle.FontStyle, fontStyle.FontSize, fontStyle.TextDecoration));
     GridViewColumn column = new GridViewColumn() { Header = fontStyle.Name };
     column.CellTemplate = dataTemplate;
     gridView.Columns.Add(column);
 }
        public FontStyleControl(FontStyleData fontStyleData)
        {
            this.InitializeComponent();
            _fontStyleData = fontStyleData;

            bindFontSizes();
            populateControls();
        }
 private void btnOk_Click(object sender, RoutedEventArgs e)
 {
     _selectedFontStyle = styleControl.FontStyleData;
     DialogResult = true;
 }