# Creating and Configuring Controls in Code

> Create the WPF TextControl, ButtonBar, RulerBar, StatusBar, ribbon tabs and Sidebar in C#: names with RegisterName, DockPanel placement and removing controls.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Integration Guide > Creating and Configuring Controls in Code
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/controls-in-code/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/controls-in-code/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/controls-in-code/llms-full.txt

---

## On This Page

- [Prepare the Window](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/controls-in-code/#prepare-the-window)
- [Create the Editor and Its Bars](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/controls-in-code/#create-the-editor-and-its-bars)
- [Add a Ribbon Tab and a Sidebar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/controls-in-code/#add-a-ribbon-tab-and-a-sidebar)
- [Change the Connections at Run Time](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/controls-in-code/#change-the-connections-at-run-time)
- [Remove a Control Created in Code](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/controls-in-code/#remove-a-control-created-in-code)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/controls-in-code/#next-steps)

---

## Nearby

- **Previous:** [XAML Integration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/xaml/llms.txt)
- **Next:** [Embedding the Editor in Windows and UserControls](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/integration/embedding/llms.txt)
