Click and drag selection box in WPF

后端 未结 4 1577
攒了一身酷
攒了一身酷 2020-11-30 21:53

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 evalua

4条回答
  •  臣服心动
    2020-11-30 22:22

    You can get this functionality pretty easily by adding an InkCanvas and set its EditingMode to Select. Although it's primarily intended for Tablet PC ink collection and rendering, it's very easy to use it as a basic designer surface.

    
        
            

提交回复
热议问题