Class BuildViewModelTask
Generates the viewmodels for the generated and compiled xaml files
Implements
Microsoft.Build.Framework.ITask
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.CXUI.ViewModel
Assembly: Simplic.CXUI.ViewModel.dll
Syntax
public abstract class BuildViewModelTask : BuildTaskBase
Constructors
| Improve this Doc View SourceBuildViewModelTask()
Create generator
Declaration
public BuildViewModelTask()
Properties
| Improve this Doc View SourceDefaultBaseViewModel
Get or set the default viewmodel base, which will be used if no MetaBaseViewModel is set
Declaration
public MetaBaseViewModel DefaultBaseViewModel { get; set; }
Property Value
Type | Description |
---|---|
MetaBaseViewModel |
ViewModelFiles
List of viewmodel files to compile
Declaration
public IList<string> ViewModelFiles { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> |
ViewModels
List of all viewmodels to generate
Declaration
public IList<MetaViewModel> ViewModels { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<MetaViewModel> |
Methods
| Improve this Doc View SourceExecute()
Generate viewmodel and save in output directory
Declaration
public override bool Execute()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceGenerateMetaViewModel(String)
Generate a metaviewmodel by passing it's code
Declaration
public abstract MetaViewModel GenerateMetaViewModel(string code)
Parameters
Type | Name | Description |
---|---|---|
System.String | code | Code of the meta viewmodel in the specific language (json, c#, python, ...) |
Returns
Type | Description |
---|---|
MetaViewModel | Throws an exception or returns the viewmodel meta information |
Implements
Microsoft.Build.Framework.ITask