This page gives you support in managing your component skin: how to define the style of single items, where to include it, etc.
Overview
WPF Text Editor contains one built-in default skin and can load external skin from a specified folder.
In order to change the component skin, you have to set the SkinFolder property. The default skin corresponds to a null or empty string value for the SkinFolder property; to apply a custom skin, the SkinFolder property value must be set to the path of the folder containing the skin files.
Some examples:
wte.SkinFolder = ""; - This sets that the default skin must be applied
wte.SkinFolder = @"Skins\Office2007"; - This sets that the skin defined in "Skins\Office2007" folder must be applied.
The skin folder contains resource dictionaries in XAML files. When the SkinFolder property is assigned, all the control's merged dictionaries are removed, and the dictionaries from the skin folder are loaded.
The skin folder can contain a subfolder named "XAML". The XAML subfolder can contain the following files:
- MainMenu.xaml - this file contains main menu definition
- ContextMenu.xaml - this file contains context menu definition
- Toolbar.xaml - this file contains toolbar definition
If the XAML subfolder or some file in the subfolder does not exist, then default value will be used. For example, if the ContextMenu.xaml file is not exists, then built-in default context menu will be used.