mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* Move the applyStyleFromScope to onLoaded, when the views are created and id or className properties are set the CSS selectors are queried and applied multiple times * Condense the changes when applying properties
9 lines
371 B
XML
9 lines
371 B
XML
<Page xmlns:btnCount="ui/lifecycle/pages/button-counter">
|
|
<StackLayout id="stack">
|
|
<btnCount:Button id="btn1" text="one" class="nocolor" />
|
|
<btnCount:Button id="btn2" text="two" class="red" />
|
|
<btnCount:Button id="btn3" text="three" class="blue" />
|
|
<btnCount:Button id="btn4" text="four" class="red blue" />
|
|
</StackLayout>
|
|
</Page>
|