Skip to main content


Resolving Styles & Templates at runtime

You can resolve a style by declaring a variable of type StyleId and assigning it using the identifier resolution syntax @moduleName::styleName

You can do the same thing to resolve a template via TemplateId typed variables.

template ResolutionExample {

render {

TemplateId templateId = @EvolveDemo;
StyleId styleId = @box;

// toggle the given style
run $;

create {
// spawn a window with your template
$runtime.CreateWindowView(templateId, new Rect(0, 0, 800, 600));