Interface IThemePolicy
Defines which theme resources are used for a WPF control assembly.
Namespace: PresentationTheme.Aero
Assembly: PresentationTheme.Aero.dll
Syntax
public interface IThemePolicy
Properties
| Improve this Doc View SourceMergeWithBaseResources
Gets or sets a value indicating whether the resources provided by GetCurrentThemeUri() are merged with the base resources of the assembly this policy is used for.
Declaration
bool MergeWithBaseResources { get; }
Property Value
Type | Description |
---|---|
Boolean | true to merge the resources with the base resources. The actual theme resource dictionary provided to WPF will have the base resources and the resources provided by this policy as merged resource dictionaries. false to replace the base resources and only use the resources provided by this policy. In this case ensure that all expected resource keys are present. |
Methods
| Improve this Doc View SourceGetCurrentThemeUri()
Gets the pack Uri to the location of the theme resource dictionary to use. This method will be invoked again to get an updated resource URI in case the system theme has changed. If the method returns null the default theme resources are used.
Declaration
Uri GetCurrentThemeUri()
Returns
Type | Description |
---|---|
Uri |