1.引用两个.net 程序集
2.xaml name space导入
xmlns:i ="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:b ="http://schemas.microsoft.com/expression/2010/interactions"
3. 添加控件
<Label>
<i:Interaction.Behaviors>
<b:MouseDragElementBehavior></b:MouseDragElementBehavior>
</i:Interaction.Behaviors>
<TextBlock Text="拖我"/>
</Label>