Set
DockContent.Icon
to the icon you want (similar to setIcon
of a normalForm
).Set
DockPanel.ShowDocumentIcon
totrue
.
If you look for a sample, this Compiler project uses this feature,
https://github.com/lextudio/sharpsnmplib/tree/51773488fcb7b9714a38134187363fef5762daca/Compiler
To get VS2012 theme, make sure that
You use our 3.0 NuGet package or build from
development_3.0
branch, https://github.com/dockpanelsuite/dockpanelsuite/tree/development_3.0Create a new instance of
VS2012LightTheme
class and assign it toDockPanel.Theme
.
This has been demonstrated in DockSample project of DockPanel Suite,
https://github.com/dockpanelsuite/dockpanelsuite/blob/development_3.0/DockSample/MainForm.cs
You can see the changes needed in SetSchema
method.
Note that all existing DockContent
objects should be cleaned before changing themes.