Components
Which pieces of TX Text Control .NET for WPF does a window need? The product consists of WPF controls that you declare in XAML and users work with, and of .NET classes that process documents in code. Each has a page below with what it does, how you set it up and the members you start with, so you can pick the parts your application uses.
All of them share one document engine. A template that a user designs in the editor is the document that MailMerge fills, and a document that ServerTextControl builds in memory looks the same when the editor loads it.
The Components at a Glance
| Component | What it does | How you add it |
|---|---|---|
| WPF.TextControl | The word processing control in which users write, format and print documents | XAML element from the toolbox |
| Ribbon Tabs, Toolbars, Rulers, and Status Bar | Ribbon tabs for Microsoft's WPF Ribbon, a button bar, mini toolbars, ruler bars and a status bar around the editor | XAML elements from the toolbox, connected to the TextControl by name |
| Sidebar | Panels beside the editor for search, styles, comments, tracked changes, merge fields or your own content | XAML element from the toolbox, connected by name |
| MailMerge | Merges DataTables, objects and JSON into templates | Created in code, connected to a TextControl or a ServerTextControl |
| ServerTextControl | Creates, converts and changes documents without anything on screen | Created in code |
The toolbox tab TX Text Control 34.0 holds TextControl, ButtonBar, RulerBar, StatusBar, Sidebar and the twelve ribbon tabs. The mini toolbars need no item of their own, because the editor opens them. Product Architecture shows how the parts connect.
What Makes the WPF Components Different
- Connections are names. Properties such as
TextControl.RulerBar,TextControl.RibbonFormattingTabandSidebar.TextControltake theNameof another element as a string, so the connections are written in XAML. - The ribbon is Microsoft's. TX Text Control supplies the tabs, and Microsoft's
System.Windows.Controls.Ribbonhosts them. - Classes of the document are shared.
Selection,Table,Imageand the other classes of a document are the same in the editor, inServerTextControland in the other TX Text Control products for .NET.
Choose a Component
| If you want to | Read |
|---|---|
| Put a document editor into a window | WPF.TextControl |
| Give users ribbon tabs, a button bar, rulers or a status bar | Ribbon Tabs, Toolbars, Rulers, and Status Bar |
| Show search, styles, comments or your own panel beside the editor | Sidebar |
| Fill letters, invoices or reports with data | MailMerge |
| Create or convert documents that nobody watches being made | ServerTextControl |
Where to Start
Begin with WPF.TextControl: the bars and the sidebar surround it, and ServerTextControl shares its programming interface for documents. Continue with the component your application needs next. If you would rather build a working window first, Create Your First WPF Application in Getting Started does that step by step.