I might be trying to do something that we can do but what I would like to do is attached a dragdrop manager to the contents of a datatemplate i display from an autocomplete box
I have the following code
<
sdk:AutoCompleteBox
KeyDown
=
"searchbox_KeyDown"
telerik:StyleManager.Theme
=
"Metro"
Height
=
"24"
HorizontalAlignment
=
"Stretch"
Name
=
"searchbox"
BorderThickness
=
"0"
VerticalAlignment
=
"Center"
VerticalContentAlignment
=
"Center"
FontSize
=
"14"
FilterMode
=
"Contains"
Margin
=
"10,2"
ValueMemberBinding
=
"{Binding Path=Code}"
>
<
sdk:AutoCompleteBox.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Vertical"
>
<
TextBlock
Width
=
"100"
telerikDragDrop:RadDragAndDropManager.AllowDrag
=
"True"
telerikDragDrop:RadDragAndDropManager.DragQuery
=
"TextBlock_DragQuery"
FontSize
=
"15"
FontWeight
=
"Bold"
Text
=
"{Binding Path=Code}"
Foreground
=
"{StaticResource AccentBrush}"
>
</
TextBlock
>
<
TextBlock
Width
=
"100"
FontSize
=
"10"
Text
=
"{Binding Path=Desc}"
/>
</
StackPanel
>
</
DataTemplate
>
</
sdk:AutoCompleteBox.ItemTemplate
>
</
sdk:AutoCompleteBox
>
Which i though would let me drag the contents of the textblock but i get the following error
Error 28 The property 'DragQuery' does not exist on the type 'TextBlock' in the XML namespace 'clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls'. D:\Development\UKI\trunk\iLaboratory\Views\iLaboratory.Common.Views\Controls\Menu.xaml 56 112 iLaboratory.Common.Views
I've tried replacing the textblock with a rad control and I still get a similar message
Can somebody advise what I'm doing wrong?
Many thanks