资 源 简 介
Scrolling Hex Map Demo
This is an example of the various techniques and concepts that I used to build a (very simple) wargame-type hex map, using C# and WPF. Some of the concepts include DrawingVisuals (which are a WPF lightweight graphical element) built from a Bitmap Static Resource, creating a custom UserControl (which uses a custom Value Converter), scrolling the map with the mouse, and turning a WPF application into an XBAP, which can be run directly in a browser.
Intended as an exercise in learning WPF, I thought it might be worth posting the code, as an example of pulling together a number of WPF concepts into a complete (although simple) working program.