Class TemplateCache
Contains the UIDataTemplate cache
Inheritance
System.Object
TemplateCache
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.UIDataTemplate.Cache
Assembly: Simplic.UIDataTemplate.dll
Syntax
public static class TemplateCache
Methods
| Improve this Doc View SourceAdd(String, String, ResourceDictionary)
Add a System.Windows.ResourceDictionary to the cache
Declaration
public static void Add(string templateName, string path, ResourceDictionary resourceDictionary)
Parameters
Type | Name | Description |
---|---|---|
System.String | templateName | Template name |
System.String | path | Path |
System.Windows.ResourceDictionary | resourceDictionary | System.Windows.ResourceDictionary instance |
Clear()
Clear the cache
Declaration
public static void Clear()
Get(String, String)
Get a System.Windows.ResourceDictionary from cache by its template name and path
Declaration
public static ResourceDictionary Get(string templateName, string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | templateName | Template name |
System.String | path | Patj |
Returns
Type | Description |
---|---|
System.Windows.ResourceDictionary | System.Windows.ResourceDictionary if exists, else null |
Remove(String, String)
Remove System.Windows.ResourceDictionary from cache
Declaration
public static void Remove(string templateName, string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | templateName | Template name |
System.String | path | Path |