1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ContentPage x:Class="NUITizenGallery.BindingTest1Page"
3 xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
4 xmlns:vm="clr-namespace:NUITizenGallery.ViewModels"
5 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6 xmlns:behaviors="clr-namespace:NUITizenGallery.Behaviors"
7 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
8 HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
10 <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
12 <AppBar x:Name="appBar" Title="BindingTest1Page"/>
15 <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
17 <View x:Name="ContentView"
18 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
19 HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
21 <!-- Bind SourceData to BindingContext of this View. -->
23 <vm:BindingTest1ViewModel x:Name="context"/>
24 </View.BindingContext>
27 <LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
30 <View BindingContext="{Binding Source={x:Reference context}}"
31 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
32 HeightSpecification="150"
34 behaviors:VisibilitySetter.IsVisible="{Binding IsBoxVisible}"/>
36 <View BindingContext="{Binding Source={x:Reference context}}"
37 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
38 HeightSpecification="150"
39 BackgroundColor="Blue"
40 behaviors:VisibilitySetter.IsVisible="{Binding IsBoxVisible}"/>
42 <Button BindingContext="{Binding Source={x:Reference context}}"
43 Command="{Binding ChangeVisibility}"
44 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
48 </ContentPage.Content>e