I make Drag & Drop based on this answer .
There is a CustomControl that inherits from ToggleButton . I bind methods to events in the constructor, but in this way events are not processed.
How to do?
public class CustomControl: ToggleButton { public CustomControl() { this.MouseLeftButtonDown += OnMouseDown; this.MouseLeftButtonUp += OnMouseUp; } void OnMouseDown(object sender, MouseButtonEventArgs e) { //... } void OnMouseUp(object sender, MouseButtonEventArgs e) { //... } }