aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Divers/observableList.crow
blob: 6d5688207e26492f23bc5c9ed6bdc9cf89e1c5ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<VerticalStack Margin="10">
	<TextBox Text="{²ObsListNewItem}"/>
	<Label Name="curItem" Text="{../lb.SelectedItem}"/>
	<HorizontalStack Height="Fit">
	<Button Command="{CMDObsListAdd}" />
	<Button Command="{CMDObsListRemove}" IsEnabled="{../lb.SelectionIsEmpty}" />
	<Button Command="{CMDObsListRemove2}"/>
	</HorizontalStack>
	<ListBox Name="lb" Data="{ObservableTestList}" SelectedItem="{²ObservableTestListSelectedItem}" >
		<Template>
			<Border Style="ControlBorder" MinimumSize="10,10" Background="{./Background}" CornerRadius="{./CornerRadius}">
				<Scroller  Name="scroller1" >
					<VerticalStack Height="Fit" Name="ItemsContainer" VerticalAlignment="Top"/>
				</Scroller>
			</Border>
		</Template>
	</ListBox>
</VerticalStack>