├── logo.png ├── .gitattributes ├── dll ├── WpfRichText.dll ├── Xceed.Wpf.DataGrid.dll ├── Xceed.Wpf.Toolkit.dll ├── Xceed.Wpf.AvalonDock.dll ├── Xceed.Wpf.AvalonDock.Themes.Aero.dll ├── Xceed.Wpf.AvalonDock.Themes.Metro.dll ├── Xceed.Wpf.AvalonDock.Themes.VS2010.dll ├── de │ └── Xceed.Wpf.AvalonDock.resources.dll ├── es │ └── Xceed.Wpf.AvalonDock.resources.dll ├── fr │ └── Xceed.Wpf.AvalonDock.resources.dll ├── hu │ └── Xceed.Wpf.AvalonDock.resources.dll ├── it │ └── Xceed.Wpf.AvalonDock.resources.dll ├── ro │ └── Xceed.Wpf.AvalonDock.resources.dll ├── ru │ └── Xceed.Wpf.AvalonDock.resources.dll ├── sv │ └── Xceed.Wpf.AvalonDock.resources.dll ├── pt-BR │ └── Xceed.Wpf.AvalonDock.resources.dll └── zh-Hans │ └── Xceed.Wpf.AvalonDock.resources.dll ├── src ├── WpfRichText │ ├── self.snk │ ├── Controls │ │ ├── Images │ │ │ ├── cut.png │ │ │ ├── cross.png │ │ │ ├── tick.png │ │ │ ├── editredo.png │ │ │ ├── editundo.png │ │ │ ├── page_copy.png │ │ │ ├── page_paste.png │ │ │ ├── text_bold.png │ │ │ ├── text_indent.png │ │ │ ├── text_italic.png │ │ │ ├── world_link.png │ │ │ ├── text_align_left.png │ │ │ ├── text_align_right.png │ │ │ ├── text_underline.png │ │ │ ├── charactergrowfont.png │ │ │ ├── text_align_center.png │ │ │ ├── text_align_justify.png │ │ │ ├── text_indent_remove.png │ │ │ ├── text_list_bullets.png │ │ │ ├── text_list_numbers.png │ │ │ └── charactershrinkfont.png │ │ ├── RichTextEditor.xaml.cs │ │ └── RichTextEditor.xaml │ ├── packages.config │ ├── Properties │ │ ├── Settings.settings │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── XamlToHtmlParser │ │ ├── HtmlTokenType.cs │ │ ├── HtmlFromXamlConverter.cs │ │ └── HtmlParser.cs │ ├── Commands │ │ ├── CommandReference.cs │ │ └── DelegateCommand.cs │ ├── AttachedProperties │ │ └── RichTextboxAssistant.cs │ └── WpfRichText.csproj ├── WpfRichText.Ex │ ├── app.config │ ├── packages.config │ ├── Properties │ │ ├── Settings.settings │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── App.xaml │ ├── App.xaml.cs │ ├── HTMLPage1.html │ ├── Window1.xaml │ ├── Window1.xaml.cs │ └── WpfRichText.Example.csproj └── WpfRichText.sln ├── nuget ├── WpfRichText.1.0.3.nupkg ├── WpfRichText.1.0.4.nupkg ├── WpfRichText.1.0.5.nupkg ├── WpfRichText.1.0.6.nupkg ├── WpfRichText.1.0.7.nupkg ├── WpfRichText.1.0.8.nupkg ├── WpfRichText.1.0.9.nupkg ├── WpfRichText.1.0.10.nupkg ├── WpfRichText.1.0.11.nupkg ├── WpfRichText.1.0.12.nupkg ├── WpfRichText.1.0.13.nupkg ├── WpfRichText.1.0.14.nupkg ├── WpfRichText.1.0.15.nupkg └── WpfRichText.1.0.16.2.nupkg ├── README.md └── .gitignore /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/logo.png -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set default behaviour to automatically normalize line endings. 2 | * text=auto -------------------------------------------------------------------------------- /dll/WpfRichText.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/WpfRichText.dll -------------------------------------------------------------------------------- /src/WpfRichText/self.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/self.snk -------------------------------------------------------------------------------- /dll/Xceed.Wpf.DataGrid.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/Xceed.Wpf.DataGrid.dll -------------------------------------------------------------------------------- /dll/Xceed.Wpf.Toolkit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/Xceed.Wpf.Toolkit.dll -------------------------------------------------------------------------------- /dll/Xceed.Wpf.AvalonDock.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/Xceed.Wpf.AvalonDock.dll -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.3.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.3.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.4.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.5.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.5.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.6.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.6.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.7.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.7.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.8.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.8.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.9.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.9.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.10.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.10.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.11.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.11.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.12.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.12.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.13.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.13.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.14.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.14.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.15.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.15.nupkg -------------------------------------------------------------------------------- /nuget/WpfRichText.1.0.16.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/nuget/WpfRichText.1.0.16.2.nupkg -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/cut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/cut.png -------------------------------------------------------------------------------- /dll/Xceed.Wpf.AvalonDock.Themes.Aero.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/Xceed.Wpf.AvalonDock.Themes.Aero.dll -------------------------------------------------------------------------------- /dll/Xceed.Wpf.AvalonDock.Themes.Metro.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/Xceed.Wpf.AvalonDock.Themes.Metro.dll -------------------------------------------------------------------------------- /dll/Xceed.Wpf.AvalonDock.Themes.VS2010.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/Xceed.Wpf.AvalonDock.Themes.VS2010.dll -------------------------------------------------------------------------------- /dll/de/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/de/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /dll/es/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/es/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /dll/fr/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/fr/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /dll/hu/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/hu/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /dll/it/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/it/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /dll/ro/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/ro/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /dll/ru/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/ru/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /dll/sv/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/sv/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/cross.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/tick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/tick.png -------------------------------------------------------------------------------- /dll/pt-BR/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/pt-BR/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/editredo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/editredo.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/editundo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/editundo.png -------------------------------------------------------------------------------- /dll/zh-Hans/Xceed.Wpf.AvalonDock.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/dll/zh-Hans/Xceed.Wpf.AvalonDock.resources.dll -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/page_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/page_copy.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/page_paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/page_paste.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_bold.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_bold.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_indent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_indent.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_italic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_italic.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/world_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/world_link.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_align_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_align_left.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_align_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_align_right.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_underline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_underline.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/charactergrowfont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/charactergrowfont.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_align_center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_align_center.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_align_justify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_align_justify.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_indent_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_indent_remove.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_list_bullets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_list_bullets.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/text_list_numbers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/text_list_numbers.png -------------------------------------------------------------------------------- /src/WpfRichText/Controls/Images/charactershrinkfont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngaillet/WPF-RichText-Editor/HEAD/src/WpfRichText/Controls/Images/charactershrinkfont.png -------------------------------------------------------------------------------- /src/WpfRichText.Ex/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/WpfRichText.Ex/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/WpfRichText/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/WpfRichText.Ex/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/WpfRichText/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/WpfRichText.Ex/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/WpfRichText.Ex/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Windows; 7 | 8 | namespace WpfRichText.Ex 9 | { 10 | /// 11 | /// Interaction logic for App.xaml 12 | /// 13 | public partial class App : Application 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | WPF-RichText-Editor 2 | =================== 3 | 4 | WPF RichText Editor Control with conversion from and to HTML (XAML) 5 | 6 | Code pulled from http://michaelsync.net/2009/06/09/bindable-wpf-richtext-editor-with-xamlhtml-convertor. 7 | Thanks to Michael Sync for this. 8 | 9 | Moved the code to a UserControlLibrary project and added a nuget package (https://nuget.org/packages/WpfRichText/) 10 | -------------------------------------------------------------------------------- /src/WpfRichText.Ex/HTMLPage1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | New Bug Template 5 | 6 | 7 |

header 1

8 |

9 | RED TEXT 10 |
11 | 1. Text after break 12 |

13 |

header 2

14 |

15 | GREEN TEXT 16 |
17 | a hyperlink 18 |

19 |
20 | TEXT IN DIV 21 |
22 | 23 | -------------------------------------------------------------------------------- /src/WpfRichText/XamlToHtmlParser/HtmlTokenType.cs: -------------------------------------------------------------------------------- 1 | //--------------------------------------------------------------------------- 2 | // 3 | // File: HtmlTokenType.cs 4 | // 5 | // Copyright (C) Microsoft Corporation. All rights reserved. 6 | // 7 | // Description: Definition of token types supported by HtmlLexicalAnalyzer 8 | // 9 | //--------------------------------------------------------------------------- 10 | 11 | namespace WpfRichText 12 | { 13 | /// 14 | /// types of lexical tokens for html-to-xaml converter 15 | /// 16 | internal enum HtmlTokenType 17 | { 18 | OpeningTagStart, 19 | ClosingTagStart, 20 | TagEnd, 21 | EmptyTagEnd, 22 | EqualSign, 23 | Name, 24 | Atom, // any attribute value not in quotes 25 | Text, //text content when accepting text 26 | Comment, 27 | EOF, 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/WpfRichText/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.18034 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace WpfRichText.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/WpfRichText.Ex/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.18034 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace WpfRichText.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build Folders (you can keep bin if you'd like, to store dlls and pdbs) 2 | [Bb]in/ 3 | [Oo]bj/ 4 | 5 | # mstest test results 6 | TestResults 7 | 8 | ## Ignore Visual Studio temporary files, build results, and 9 | ## files generated by popular Visual Studio add-ons. 10 | 11 | # User-specific files 12 | *.suo 13 | *.user 14 | *.sln.docstates 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Rr]elease/ 19 | x64/ 20 | *_i.c 21 | *_p.c 22 | *.ilk 23 | *.meta 24 | *.obj 25 | *.pch 26 | *.pdb 27 | *.pgc 28 | *.pgd 29 | *.rsp 30 | *.sbr 31 | *.tlb 32 | *.tli 33 | *.tlh 34 | *.tmp 35 | *.log 36 | *.vspscc 37 | *.vssscc 38 | .builds 39 | 40 | # Visual C++ cache files 41 | ipch/ 42 | *.aps 43 | *.ncb 44 | *.opensdf 45 | *.sdf 46 | 47 | # Visual Studio profiler 48 | *.psess 49 | *.vsp 50 | *.vspx 51 | 52 | # Guidance Automation Toolkit 53 | *.gpState 54 | 55 | # ReSharper is a .NET coding add-in 56 | _ReSharper* 57 | 58 | # NCrunch 59 | *.ncrunch* 60 | .*crunch*.local.xml 61 | 62 | # Installshield output folder 63 | [Ee]xpress 64 | 65 | # DocProject is a documentation generator add-in 66 | DocProject/buildhelp/ 67 | DocProject/Help/*.HxT 68 | DocProject/Help/*.HxC 69 | DocProject/Help/*.hhc 70 | DocProject/Help/*.hhk 71 | DocProject/Help/*.hhp 72 | DocProject/Help/Html2 73 | DocProject/Help/html 74 | 75 | # Click-Once directory 76 | publish 77 | 78 | # Publish Web Output 79 | *.Publish.xml 80 | 81 | # NuGet Packages Directory 82 | packages 83 | 84 | # Windows Azure Build Output 85 | csx 86 | *.build.csdef 87 | 88 | # Windows Store app package directory 89 | AppPackages/ 90 | 91 | # Others 92 | [Bb]in 93 | [Oo]bj 94 | sql 95 | TestResults 96 | [Tt]est[Rr]esult* 97 | *.Cache 98 | ClientBin 99 | [Ss]tyle[Cc]op.* 100 | ~$* 101 | *.dbmdl 102 | Generated_Code #added for RIA/Silverlight projects 103 | 104 | # Backup & report files from converting an old project file to a newer 105 | # Visual Studio version. Backup files are not needed, because we have git ;-) 106 | _UpgradeReport_Files/ 107 | Backup*/ 108 | UpgradeLog*.XML 109 | -------------------------------------------------------------------------------- /src/WpfRichText.Ex/Window1.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 591 | 592 | 593 | 594 | 606 | 607 | 608 | 609 | --------------------------------------------------------------------------------