WPF 代码使用Behavior


                            KeyboardBehavior mouseDragElementBehavior = new KeyboardBehavior();
                            Interaction.GetBehaviors(text).Add(mouseDragElementBehavior);

猜你喜欢

转载自blog.csdn.net/xionglifei2014/article/details/131791200