aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/Expandable.template
blob: 2360063a2d4d832df52a140a84ce7846570bf301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="{./Foreground}" Background="{./Background}">
	<VerticalStack>
		<HorizontalStack Spacing="1" Height="Fit" MouseDoubleClick="./onClickForExpand">
			<Container Margin="1" Width="10" Height="10" Focusable="true" MouseClick="./onClickForExpand"
														MouseEnter="{Background=LightGray}"
														MouseLeave="{Background=Transparent}">
				<Image
					Path="#Crow.Images.Icons.expandable.svg"
					Visible="{./IsExpandable}"
					SvgSub="{./IsExpanded}"/>
			</Container>
			<Label Text="{./Caption}"/>
		</HorizontalStack>
		<Container Name="Content" Visible="false"/>
	</VerticalStack>
</Border>