TextBox

Introduction

This page shows how to customize TextBox instances.

Customizing Selection

The following code shows how to customize the selection color:

 var textBox = new TextBox();
 textBox.AddToRoot();
 var textBoxVisual = (TextBoxVisual)textBox.Visual;
 var selection = textBoxVisual.SelectionInstance;
 selection.Color = Microsoft.Xna.Framework.Color.Blue;

Last updated

Was this helpful?