Files
NativeScript/tests/app/ui/lifecycle/pages/page-one.xml
Panayot Cankov 014e7a8e0f add profile for functions, profile CSS-es on startup, use __time (#4227)
Call native setters once when a page is instantiated.

Fix background not being reset, Label's background is now set to background, not layer

Make the nativeView field instead of property for performance reasons
2017-06-08 09:51:09 +03:00

13 lines
773 B
XML

<Page xmlns:btnCount="ui/lifecycle/pages/button-counter">
<StackLayout>
<!-- This little piggy has just attributes -->
<btnCount:Button id="btn1" borderWidth="1" borderColor="gray" borderRadius="16" fontWeight="bold" fontSize="16" />
<!-- This little piggy has just CSS -->
<btnCount:Button id="btn2" />
<!-- This little piggy has both attributes and CSS -->
<btnCount:Button id="btn3" borderWidth="1" borderColor="gray" borderRadius="16" fontWeight="bold" fontSize="16" />
<!-- This one has it all -->
<btnCount:Button id="btn4" borderRadius="3" style="background-image: url('~/logo.png'); background-position: center; background-repeat: no-repeat; background-size: cover;" />
</StackLayout>
</Page>