ListTextBox

This textbox will automaticaly complete user input from specified list.

Inherits from System.Windows.Controls.TextBox.

Properties

Property nameDescription
ListOfValuesGets or sets list of suggested values.
ValueGets or sets current text value.

Events

Event nameDescription
RightBoundReachedOccurs when caret reached end of text.
LeftBoundReachedOccurs when caret reached text start.

How to use

Bind to text value to Value property and specify ListOfValues.

<orc:ListTextBox x:Name="MinorGuitarChordsList"
                 Value="{Binding SelectedChord}">
    <orc:ListTextBox.ListOfValues>
        <x:Array Type="sys:String"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:sys="clr-namespace:System;assembly=mscorlib">
            <sys:String>Am</sys:String>
            <sys:String>Bm</sys:String>
            <sys:String>Cm</sys:String>
            <sys:String>Dm</sys:String>
            <sys:String>Em</sys:String>
            <sys:String>Fm</sys:String>
            <sys:String>Gm</sys:String>
        </x:Array>
    </orc:ListTextBox.ListOfValues>
</orc:ListTextBox>

Contributions

We would like to thank the following contributors:

Want to contribute to the documentation? We have a guide for that!


Questions

Have a question about Catel or WildGums controls? Use StackOverflow with the Catel tag!


Discussion