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