# MVVM Integration Examples

> MVVM with TX Text Control .NET for WPF: no sample application exists, and these are the bindings, converters and guides to build an MVVM view with.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Examples > MVVM Integration Examples
- **588 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/mvvm/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/mvvm/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/mvvm/llms-full.txt

---

Are there samples of TX Text Control .NET for WPF in an application built with the Model-View-ViewModel (MVVM) pattern? No: none of the sample applications of Text Control, on GitHub or installed by the setup, uses a view model, commands or bound document content. The official samples handle events in code-behind. What exists are the pieces an MVVM view is built from, and the pages below show them.

### What You Can Build on

In MVVM, the view connects its controls to data through bindings instead of event handlers. TX Text Control .NET for WPF offers these bindable parts:

| Example | What it shows | Where |
|---|---|---|
| Formatting at the input position | WPF controls bound to the properties of [InputFormat](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inputformat/llms-full.txt), such as a toggle button for bold text, in XAML only | [XAML and Data Binding Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/xaml-data-binding/#bind-a-button-to-the-formatting) |
| Value converters | The converters of the namespace `TXTextControl.WPF`, which translate colors, units, zoom factors and enumeration values for WPF controls | [XAML and Data Binding Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/xaml-data-binding/#value-converter-examples) |
| State of the editor | Buttons enabled through bindings to [CanUndo](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/canundo-property/llms-full.txt) and [CanRedo](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/canredo-property/llms-full.txt) in the TX Words ribbon samples | [XAML and Data Binding Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/xaml-data-binding/#bindings-in-the-samples) |
| Dependency properties | [ZoomFactor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoomfactor-property/llms-full.txt) and other properties that the reference describes as dependency properties, which can be the target of a binding | The reference page of each property |

The content of the document is not among them: the reference doesn't describe [TextControl.Text](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/text-property/llms-full.txt) as a dependency property, and no source shows the document content bound to a view model.

### Where the Pattern Is Described

[MVVM Integration Patterns](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/mvvm/llms-full.txt) in the Integration Guide describes how the `TextControl` fits into an MVVM application, and [Data Binding](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/data-binding/llms-full.txt) explains the bindings it relies on.

### Next Steps

- [XAML and Data Binding Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/xaml-data-binding/llms-full.txt): the XAML of the bindings and converters.
- [GitHub Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/github/llms-full.txt): the sample applications of TX Text Control .NET for WPF.
- [Value Converters](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/data-binding/value-converters/llms-full.txt): the converters in detail.

---

## Nearby

- **Previous:** [XAML and Data Binding Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/xaml-data-binding/llms-full.txt)
- **Next:** [Document Processing Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/document-processing/llms-full.txt)
