mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed issue when bindingContext is bound more than once.
This commit is contained in:
15
apps/tests/ui/bindingContext_testPage.xml
Normal file
15
apps/tests/ui/bindingContext_testPage.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<Page xmlns="http://www.nativescript.org/tns.xsd"
|
||||
xmlns:g="components/grid-view/grid-view"
|
||||
loaded="pageLoaded">
|
||||
<StackLayout id="upperStack">
|
||||
<Label id="upperStackLabel" text="{{ item.Title }}" />
|
||||
<StackLayout id="firstStack" bindingContext="{{ item }}" orientation="horizontal">
|
||||
<Label id="labelText1" text="1" />
|
||||
<Label id="label1" text="{{ Title }}" />
|
||||
</StackLayout>
|
||||
<StackLayout id="secondStack" bindingContext="{{ item }}" orientation="horizontal">
|
||||
<Label id="labelText2" text="2" />
|
||||
<Label id="label2" text="{{ Title }}" />
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user