ListPicker color and bckgColor set from CSS

This commit is contained in:
zh-m
2016-12-02 11:45:44 +02:00
parent 46a59ab92c
commit 669f6dc8ec
5 changed files with 109 additions and 8 deletions

View File

@@ -0,0 +1,7 @@
export function loaded(args) {
var items = [];
for (var i = 0; i < 100; i++) {
items.push("name" + i);
}
args.object.bindingContext = { items: items };
}

View File

@@ -0,0 +1,5 @@
<Page loaded="loaded">
<StackLayout>
<ListPicker items="{{ items }}" style="color: deeppink; background-color:lightskyblue" />
</StackLayout>
</Page>

View File

@@ -37,6 +37,7 @@ export function pageLoaded(args: EventData) {
examples.set("all-uniform-border", "css/all-uniform-border");
examples.set("all-non-uniform-border", "css/all-non-uniform-border");
examples.set("margins-paddings-with-percentage", "css/margins-paddings-with-percentage");
examples.set("list-picker", "css/list-picker");
//examples.set("border-playground", "css/border-playground");
let viewModel = new SubMainPageViewModel(wrapLayout, examples);