Show / Hide Table of Contents

Interface ISkinManager

Interface definition of SkinManager.

Namespace: Sartorius.SAF.Presentation.Skins
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public interface ISkinManager

Properties

View Source

SkinColors

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.

View Source

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 Source

ApplySkin(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.

View Source

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.

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX