This walkthrough illustrates the following tasks:Įnable the user control to be a drag source.Įnable the user control to be a drop target.Įnable a panel to receive data dropped from the user control. You will write code that enables the panels to process dropped Circle data, which will enable you to move or copy Circles from the Children collection of one panel to the other. You will also create a small application that contains two panel controls and a TextBox to test the drag-and-drop functionality. If you drag from a Circle control to a TextBox, the string representation of the Fill color is copied to the TextBox. For example, if you drag from one Circle control to another, the Fill color data is copied from the source Circle to the target. You will implement functionality on the control to enable data transfer through drag-and-drop. In this walkthrough, you will create a custom WPF UserControl that represents a circle shape. This walkthrough demonstrates how to create a custom user control that can participate in drag-and-drop data transfer in Windows Presentation Foundation (WPF).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |