How hellikandra/wintak-plugintemplate works
This is a WinTAK plugin template demonstrating a ribbon button that opens a dockable pane with a counter view. The main runtime path is WinTAK hosting MEF exports, a button requesting pane activation, and the view invoking a command on its pane. The README also describes map interaction as a possible use of buttons, not implemented here. Source excerpts establish the button and pane behavior; view bindings and MEF hosting are documented in the README.
Main entry points: TemplateButton.cs Ribbon Button · TemplateDockPane.cs Counter Pane · TemplateView.xaml Pane View · TemplateView.xaml.cs View Code
Components 8
Plugin Registration
- Plugin Module
TemplateModule.cs - Ribbon Button
TemplateButton.cs
Dockable UI
- Counter Pane
TemplateDockPane.cs - Pane View
TemplateView.xaml - View Code
TemplateView.xaml.cs
Host Services
- WinTAK Host
- Docking Manager
Other components
- WinTAK User
Connections 9
- WinTAK User → Ribbon Button: clicks
README.md - WinTAK Host → Plugin Module: loads MEF module
README.md - WinTAK Host → Ribbon Button: loads MEF export
README.md - Ribbon Button → Docking Manager: requests pane
TemplateButton.cs - Ribbon Button → Counter Pane: activates pane
TemplateButton.cs - Counter Pane → Pane View: provides content
TemplateDockPane.cs - Pane View → Counter Pane: invokes bound command
README.md - Counter Pane → Pane View: updates counter
README.md - View Code → Pane View: initializes
TemplateView.xaml.cs