Title:
ScrollAndPanContentSample Download
Description: Simple Behavior to Allow Zooming and Dragging a Contained Control
I inherited a solution that had some code behind to allow zooming the contents of a Window because the WPF design was for a 2560 x1440 display and was hard to see on a smaller display. I moved the code into a behavior and added the ability to drag the zoomed control. I also designed it so that the container did not have to be just a Window but could be any ContentControl.
To Search:
File list (Check if you may need any files):
ScrollAndPanContentSample\.vs
ScrollAndPanContentSample\.vs\ScrollAndPanContentSample
ScrollAndPanContentSample\.vs\ScrollAndPanContentSample\v15
ScrollAndPanContentSample\.vs\ScrollAndPanContentSample\v15\.suo
ScrollAndPanContentSample\App.config
ScrollAndPanContentSample\App.xaml
ScrollAndPanContentSample\App.xaml.cs
ScrollAndPanContentSample\interesting-pictures-asperatus-clouds.jpg
ScrollAndPanContentSample\MainWindow.xaml
ScrollAndPanContentSample\MainWindow.xaml.cs
ScrollAndPanContentSample\Properties
ScrollAndPanContentSample\Properties\AssemblyInfo.cs
ScrollAndPanContentSample\Properties\Resources.Designer.cs
ScrollAndPanContentSample\Properties\Resources.resx
ScrollAndPanContentSample\Properties\Settings.Designer.cs
ScrollAndPanContentSample\Properties\Settings.settings
ScrollAndPanContentSample\ScrollAndPanContentSample.csproj
ScrollAndPanContentSample\ScrollAndPanContentSample.sln
ScrollAndPanContentSample\WindowZoomBehavior.cs