Snapping / Sticky WPF Windows

前端 未结 3 1357
Happy的楠姐
Happy的楠姐 2020-12-04 13:37

I\'m looking for solution to add snapping/sticky windows functionallity (winamp-like) to existing WPF application. Same thing as it was asked here, just I need it for WPF.

3条回答
  •  无人及你
    2020-12-04 14:33

    HuddledMasses.org has very nice example for snapping to screen edges (nice opensource framework underneath also)

    HuddledMasses - WPF windows that snap to screen edges

    However, it lacks snapping to other windows. There is another solution on CodeProject. It's Windows Forms sticky windows. There you can find implementation for nearest window detection and snapping, which you/me/orsomebodyelse should implement in WPF manner.

    Code Project - Sticky windows


    Edit: I've created solution based on the text above

    WPF Sticky Windows Solution Download Link

提交回复
热议问题