зеркало из https://github.com/telerik/xaml-sdk.git
22 строки
1.3 KiB
XML
22 строки
1.3 KiB
XML
<UserControl x:Class="SingleSelectionModeWithClearButton.Example"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="300" d:DesignWidth="300">
|
|
<StackPanel Width="350">
|
|
<TextBlock Margin="10 10 10 0" TextWrapping="Wrap"
|
|
Text="This example demonstates how to add a button that clears the current SelectedItem in Single SelectionMode."/>
|
|
<TextBlock Margin="10" TextWrapping="Wrap"
|
|
Text="For example type 'Bulgaria' and select it - a cross button will appear."/>
|
|
<telerik:RadAutoCompleteBox ItemsSource="{Binding Countries}"
|
|
Width="250"
|
|
DisplayMemberPath="Name"
|
|
TextBoxStyle="{StaticResource CustomTextBoxStyle}"
|
|
SelectionMode="Single"
|
|
SelectedItem="{Binding SelectedItem, Mode=TwoWay}" />
|
|
</StackPanel>
|
|
</UserControl>
|