Interface ITemplateLoader
Interface that must be implemented into all template loader
Namespace: Simplic.UIDataTemplate
Assembly: Simplic.UIDataTemplate.dll
Syntax
public interface ITemplateLoader
Properties
| Improve this Doc View SourceIsReadOnly
Gets whether the loaded code is readonly
Declaration
bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetTemplate(String, String)
Returns the xaml template code
Declaration
LoaderResult GetTemplate(string templateName, string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | templateName | Name of the DataTemplate |
System.String | path | Path to the template |
Returns
Type | Description |
---|---|
LoaderResult | Null if the template was not found, else the template code |
SaveTemplate(String, String, String)
Save ui template
Declaration
void SaveTemplate(string templateName, string path, string code)
Parameters
Type | Name | Description |
---|---|---|
System.String | templateName | Name of the DataTemplate |
System.String | path | Path to the template |
System.String | code | Template code |