Click and drag selection box in WPF
问题 Is it possible to implement mouse click and drag selection box in WPF. Should it be done through simply drawing a rectangle, calculating coordinates of its points and evaluating position of other objects inside this box? Or are there some other ways? Could you give a bit of sample code or a link? 回答1: Here is sample code for a simple technique that I have used in the past to draw a drag selection box. XAML: <Window x:Class="DragSelectionBox.Window1" xmlns="http://schemas.microsoft.com/winfx