This is a sample app that demonstrates a custom WPF control. The control allows a user to zoom in and out of a raster image, in this case a fractal, while maintaining accuracy within each pixel of the image. See PanAndZoomViewer.cs
To view the control in action:
- Install and run the app
- Hit the Start button to generate an image
- Zoom in on a single pixel within the image and pan to a point within the pixel you wish to zoom further in on.
- Hit Start to generate a new image centered on the point you selected
The project can also be used as a practical example of a custom WiX installer using a WPF UI. Refer to https://github.com/rsmart8452/Wix4BurnTutorial for a tutorial.
- Software prerequisites:
- Heatwave (Wix v4) - found on the Visual Studio Marketplace
- IsWix (External app) - download and install from GitHub https://github.com/iswix-llc/iswix/releases
- Software dependencies:
- .NET 8, specifically
TargetFramework=net8.0-windows
- WPF (which requires targetting Windows)
- .NET 8, specifically
- Open SLN file in Visual Studio
- Build the solution
- Open a command terminal of your choice.
- In the Visual Studio menus, View\Terminal
- Either Powershell or Command Prompt will work.
- Using the Terminal, run
.\sandbox.wsb
- This starts a Windows sandbox.
- Wait for it to open a couple of File Explorer windows.
- One of these will show
C:\Fractal_Source
- You can test the installer from
C:\Fractal_Source\FractalFlair_Setup\bin\x64\Release
.
- You can test the installer from
- The other will show where FractalFlair will be installed.
- Use this to verify the installer runs correctly.
- One of these will show
- Verify that the installer created a Start Menu item for FractalFlair.
- Test the app by using this shortcut to run it.