You can load previously save FontSize and FontFamily. If(fontSize.SelectedValue!=null & fontFamily.SelectedValue!=null) ToolbarSetting setting = new ToolbarSetting() Using (XmlWriter writer = XmlWriter.Create(fileName))
Private void Window_Closing(object sender, e)Ĭ1FontFamilyTool fontFamily = (C1FontFamilyTool)('13_T', rtbToolbar) Ĭ1FontSizeTool fontSize = (C1FontSizeTool)('15_T', rtbToolbar) For that you need to find C1FontFamilyTool and C1FontSizeTool from C1RichTextBoxToolbar’s template in Closing event handler of Window and then you can save SelectedValue in XML :
You can save FontSize and FontFamily at the time of window closing.