2012-02-22 4 views
1
<ListBox Margin="1,42,0,0" BorderThickness="0" BorderBrush="{x:Null}" 
       telerik:StyleManager.Theme="Metro" 
       Name="lbSource" ItemTemplate="{StaticResource ListBoxItemTemplate}" 
       ItemContainerStyle="{StaticResource DisallowDrag}" 
      telerik:DragDropManager.AllowDrag="True"..... 

Недвижимость telerik: DragDropManager.AllowDrag - как мне переключиться с C#?Как мне получить доступ к этому свойству из 'code-behind'?

Спасибо.

ответ

3

Попробуйте использовать следующую инструкцию, чтобы установить для этого значения свойства значение false.

lbSource.SetValue(DragDropManager.AllowDrag, false); 
Смежные вопросы