Snapping / Sticky WPF Windows

前端 未结 3 1326
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:22

    The WPF Docking Library may provide some of what you are looking for, but I'm unsure if it works on the entire screen or just on your application window.

    0 讨论(0)
  • 2020-12-04 14:26

    Here my project that make your wpf app snapping / sticky. It works great:

    http://programminghacks.net/2009/10/19/download-snapping-sticky-magnetic-windows-for-wpf/

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题