or
<
DataTemplate
x:Key
=
"AutoCompleteListBoxTemplate"
>
<
Grid
Width
=
"{Binding ElementName=radListBox, Path=Width}"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
Text
=
"{Binding Name}"
Grid.Column
=
"0"
HorizontalAlignment
=
"Stretch"
/>
<
TextBlock
Text=">>" Grid.Column="1" HorizontalAlignment="Right" Margin="5,0,5,0" />
</
Grid
>
</
DataTemplate
>
<
telerik:RadListBox
MinWidth
=
"100"
MaxHeight
=
"250"
x:Name
=
"radListBox"
Grid.ColumnSpan
=
"2"
Visibility
=
"Collapsed"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
ItemTemplate
=
"{StaticResource AutoCompleteListBoxTemplate}"
PreviewKeyDown
=
"radListBox_PreviewKeyDown"
>
<
telerik:RadListBox.Effect
>
<
DropShadowEffect
ShadowDepth
=
"10"
Color
=
"Gray"
Opacity
=
".4"
Direction
=
"320"
RenderingBias
=
"Performance"
/>
</
telerik:RadListBox.Effect
>
</
telerik:RadListBox
>
<
telerik:RadTreeView
.......>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"LoadOnDemand"
>
<
vm:InvokeDelegateCommandAction
Command
=
"{StaticResource loadOnDemandCommand}"
CommandParameter
=
"{Binding RelativeSource={RelativeSource Self, Path=InvokeParameter}"
/>
</
i:EventTrigger
>
<
i:Iteraction.Triggers
>
</
telerik:RadTreeView
>