public DragDrop_Basics() { this.InitializeComponent(); var helper = new DragDropTestHelper(Output); helper.SubscribeDragEvents(BasicDragSource); helper.SubscribeDragEvents(TextDragSource); helper.SubscribeDragEvents(LinkDragSource); helper.SubscribeDragEvents(ImageDragSource); helper.SubscribeDropEvents(DropTarget); AddHandler(PointerPressedEvent, new PointerEventHandler(SleepOnTouchDown), true); // handle too required for the hyperlink }
public DragDrop_Nested() { this.InitializeComponent(); var helper = new DragDropTestHelper(Output); helper.SubscribeDragEvents(ParentDragSource); helper.SubscribeDragEvents(NestedDragSource); helper.SubscribeDropEvents(ParentDropTarget); helper.SubscribeDropEvents(NestedDropTarget); // We also subscribe on this to detect raise on element which does not have the CanDrag and AllowDrop flags set. helper.SubscribeDragEvents(this); helper.SubscribeDropEvents(this); }