Hacking on a sample using Windows Composition APIs in WPF
Rough summary of what you'll find in the repo -
- WPF app hosting class that implements HwndHost
- Uses pinvoke and COM interop to access additional platform APIs
- Custom Graph class and associated helpers
- Graph uses Composition APIs and animations to enhance look & feel
- Text rendered using SharpDX
- Update how data can be passed to the graph (include bar labels with data)
- Automate graph resizing based on parent container size
- Make graph orientation options (horizontal vs vertical)
- Add more graph bar style options - shared linear gradient, blurred semi-transparent color, etc
- Legend
- Trend line on top of bars
- Option for data sets (groups of bars)
- Bar hover-over text
- Ability to add data later on (abstract from constructor)
- Text change property events to auto trigger text redraw
- Options for min bar width
