This is a migrated thread and some comments may be shown as answers.

How to set text wrapping in XAML

2 Answers 137 Views
MultiColumnComboBox
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Veteran
Hans asked on 19 Oct 2020, 02:19 PM

Hi,

How can set text wrapping for the the displayed text of the MultiColumnComboBox control in XAML ?

Regards,
Hans

 

2 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 20 Oct 2020, 09:27 AM

Hello Hans,

Thank you for the provided image.

For this purpose, you can use the SelectionBoxTemplate property of the RadMultiColumnComboBox control. You can specify DataTemplate with TextBlock inside. Then you can set the Width and TextWrapping property of the TextBlock.

<telerik:RadMultiColumnComboBox Width="200" . . . .  >
    <telerik:RadMultiColumnComboBox.SelectionBoxTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name}" TextWrapping="Wrap" Width="140"/>
        </DataTemplate>
    </telerik:RadMultiColumnComboBox.SelectionBoxTemplate>
. . . . .

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Hans
Top achievements
Rank 1
Veteran
answered on 21 Oct 2020, 07:56 AM
Great ! Thanks Dinko !
Tags
MultiColumnComboBox
Asked by
Hans
Top achievements
Rank 1
Veteran
Answers by
Dinko
Telerik team
Hans
Top achievements
Rank 1
Veteran
Share this question
or