Interface ISkinManager
Interface definition of SkinManager.
Namespace: Sartorius.SAF.Presentation.Skins
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public interface ISkinManager
Properties
View SourceSkinColors
Gets or sets the list of colors.
Declaration
List<ISkinColor> SkinColors { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ISkinColor> |
Remarks
This list should be imported via MEF in the ISkinManager implementation.
SkinLayouts
Gets or sets the list of layouts.
Declaration
List<ISkinLayout> SkinLayouts { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ISkinLayout> |
Remarks
This list should be imported via MEF in the ISkinManager implementation.
Methods
View SourceApplySkin(String, String)
Applies the skins of the given id's to the Application.Current.Resources.
Declaration
void ApplySkin(string layoutId, string colorId)
Parameters
Type | Name | Description |
---|---|---|
System.String | layoutId | The id of the SkinLayout implementation. |
System.String | colorId | The id of the SkinColor implementation. |
Remarks
The skins are merged first (in the correct order) and then applied.
MergeResources(ResourceDictionary, String, String)
Merges the skins of the given id's with the given resourceDictionary.
Declaration
void MergeResources(ResourceDictionary resourceDictionary, string layoutId, string colorId)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.ResourceDictionary | resourceDictionary | The resourceDictionary the skins should be merged with |
System.String | layoutId | The id of the SkinLayout implementation. |
System.String | colorId | The id of the SkinColor implementation. |