[英]How do I access this property from 'code-behind'?
<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#切換此屬性?
謝謝。
嘗試使用以下語句將此屬性值設置為false。
lbSource.SetValue(DragDropManager.AllowDrag, false);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.