Skip to content

CodingConnected/WPF.ZoomPanel

Repository files navigation

ZoomPanel: A Custom WPF Zoom and Pan Control

IDE = Visual Studio 2019 Language = C# dotNet Framework 4.8 dotNet 6.0 Windows Desktop
Based on Clifford Nelson's Enhanced WPF Custom Control for Zooming and Panning

Main Changes

  • Added option for panning the view with mouse wheel up/down
    • Support for horizontal wheel scrolling / mouse wheel tilt
  • Fully customizable mouse and keyboard controls
  • Refactored and cleaned up code
    • Renamed the namespace & control - for easier differentiation from the original control
    • Fixed some bugs
  • XAML namespace definitions and prefix for ease of integration

Installation & usage

  1. Install the package from NuGet
    Nuget
    or download the packages or binaries from Releases page
  2. Add xmlns:WPFZoomPanel="https://github.com/Moravuscz/WPFZoomPanel" to your XAML Window definition
  3. Use <WPFZoomPanel:ZoomPanel> or </WPFZoomPanel:ZoomPanelScrollViewer> for whatever content you want to be zoom/pan-able.
  4. Add <WPFZoomPanel:ZoomPanelViewBox> to add an interactive minimap for the ZoomPanel.

For more details see Wiki

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages