aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/ui/MemberView.crow
blob: 8c4c21ec7288917b69090060b0d924e871169499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0"?>
<Window Caption="Properties" Width="30%" Height="60%" AlwaysOnTop="true">
	<MembersView Instance="{SelectedItem}" DataTest="Type"  Background="DimGray">
	<!--				<Template>
			<Scroller  Name="scroller1" Margin="1" VerticalScrolling="true"
				ValueChanged="./_scroller_ValueChanged">
				<VerticalStack LayoutChanged="./_list_LayoutChanged" Spacing="0"
					Height="Fit" Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
			</Scroller>
		</Template>-->
		<ItemTemplate>
			<HorizontalStack Focusable="true"  Height="Fit" Spacing="0"
					MouseEnter="{Background=UnitedNationsBlue}"
					MouseLeave="{Background=Transparent}" >
				<Label Margin="1" Text="{Name}" Height="Fit" Width="50%"/>
				<TextBox Margin="1" Text="{²Value}" Height="Fit" Width="50%"/>
			</HorizontalStack>
		</ItemTemplate>
		<ItemTemplate DataType="System.Boolean">
			<HorizontalStack Focusable="true"  Height="Fit" Spacing="0"
					MouseEnter="{Background=UnitedNationsBlue}"
					MouseLeave="{Background=Transparent}" >
				<Label Margin="1" Text="{Name}" Height="Fit" Width="50%"/>
				<CheckBox Background="White" Height="Stretched" Caption="" IsChecked="{²Value}"/>
			</HorizontalStack>
		</ItemTemplate>
		<ItemTemplate DataType="System.Enum">
			<HorizontalStack Focusable="true"  Height="Fit" Spacing="0"
					MouseEnter="{Background=UnitedNationsBlue}"
					MouseLeave="{Background=Transparent}" >
				<Label Margin="1" Text="{Name}" Height="Fit" Width="50%"/>
				<ComboBox Margin="0"  Height="Stretched" Width="50%" Data="{Choices}"
						SelectedIndex="{²Value}">
					<Template>
						<Popper Name="popper" PopDirection="Bottom">
							<Template>
								<Border CornerRadius="0" Foreground="LightGray" Background="White">
									<HorizontalStack Margin="0" Spacing="1">
										<Label Width="Stretched" MinimumSize="80,10" Margin="1" Foreground="Black" Background="White"
											Text="{../../../../SelectedItem}"/>
										<Button Width="12" Height="12" Focusable="false"
											Template="#Crow.Templates.ArrowButTemplate.crow">
											<Image Margin="1"  Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
										</Button>
									</HorizontalStack>
								</Border>
							</Template>
							<Border Background="White" BorderWidth="1" Margin="1" Foreground="Black"
								MinimumSize="{../../MinimumPopupSize}" Fit="true">
								<Scroller Name="scroller1" Margin="2" VerticalScrolling="true"
									MaximumSize="0,200"
									HorizontalAlignment="Left"
									ValueChanged="../../../_scroller_ValueChanged">
									<VerticalStack LayoutChanged="../../../../_list_LayoutChanged"
										MouseClick="../../../onMouseClick" Focusable="True"
										Height="Fit" Name="ItemsContainer" Margin="0"
										HorizontalAlignment="Left"
										VerticalAlignment="Top"/>
								</Scroller>
							</Border>
						</Popper>
					</Template>
					<ItemTemplate>
						<Container Fit="true" Margin="0" Focusable="true"
								HorizontalAlignment="Left"
								MouseEnter="{Background=SteelBlue}"
								MouseLeave="{Background=Transparent}">
							<Label Text="{}" Foreground="Black"/>
						</Container>
					</ItemTemplate>
				</ComboBox>
			</HorizontalStack>
		</ItemTemplate>
		<ItemTemplate DataType="Crow.Fill">
			<HorizontalStack Focusable="true"  Height="Fit" Spacing="0"
					MouseEnter="{Background=UnitedNationsBlue}"
					MouseLeave="{Background=Transparent}" >
				<Label Margin="1" Text="{Name}" Height="Fit" Width="50%"/>
				<Popper Background="White" Margin="0" Height="Stretched" Caption="{Value}">
					<Template>
						<HorizontalStack Spacing="3" Height="Fit" Background="{./Background}">
							<Border Foreground="Black" Width="16" Height="10" CornerRadius="3"
								Background="{Value}">
							</Border>
							<Label Text="{./Caption}" Foreground="Black"/>
						</HorizontalStack>
					</Template>
					<ColorPicker SelectedColor="{²Value}" Background="Onyx" Margin="5" Fit="True" />
				</Popper>
			</HorizontalStack>
		</ItemTemplate>

	</MembersView>
</Window>