摘要:
今天遇到一个需求,要求能对可拖动的对象提供二种模式:允许拖动、禁止拖动。之前的拖动为了省事,直接用了:Blend自带的MouseDragElementBehavior,于是就需要在cs代码中控制这个东东了。折腾了一下,还算简单:xaml代码<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sc 阅读全文
posted @ 2012-03-23 10:11
菩提树下的杨过
阅读(2259)
评论(4)
推荐(0)
浙公网安备 33010602011771号