aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/ShowCase/ui/Interfaces/Experimental/DockWindow.template
blob: 6c91312bf0d6d248b8397dc5e6e4baa4c4dd9f22 (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
<?xml version="1.0"?>
<!--<Widget Background="{./Background}"/>-->
<Border BorderWidth="1" Foreground="Black" CornerRadius="{./CornerRadius}"
				Background="{./Background}"
				MouseEnter="./onBorderMouseEnter"
				MouseLeave="./onBorderMouseLeave">
	<VerticalStack Spacing="0">
		<HorizontalStack Height="Fit">
 			<Label  Text="{./Name}" TextAlignment="Left" Width="Fit"
					 Foreground="White" />
 			<Label  Text="{./DockingPosition}" TextAlignment="Left" Width="Fit"
					 Foreground="White" />
		</HorizontalStack>
		<Label  Text="{./Width}" TextAlignment="Left" Width="Fit"
				 Foreground="White" />
		<Label  Text="{./Height}" TextAlignment="Left" Width="Fit"
				 Foreground="White" />

		<HorizontalStack Visible="{./IsDocked}" Height="Fit" Margin="1" Background="Grey">
			<Label  Text="{./Caption}" TextAlignment="Left" Width="Stretched"
					 Foreground="Jet" />
			<Image Width="8" Height="8" Focusable="true" Margin="0" Path="#Crow.Icons.exit2.svg"
					 MouseClick="./butQuitPress"/>
		</HorizontalStack>
		<HorizontalStack Background="vgradient|0:0.5,0.6,0.5,0.5|1:0.2,0.3,0.3,0.7"
				Name="hs" Margin="0" Spacing="0" Height="Fit" Visible="{./IsFloating}">
			<Widget Width="5"/>
			<Image Margin="1" Width="10" Height="10" Path="{./Icon}"/>
			<Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Left" Text="{./Caption}" />
			<Border CornerRadius="6" BorderWidth="1" Foreground="Transparent"  Height="10" Width="10"
				MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
				<Image Focusable="true" Name="Image" Margin="0" Path="#Crow.Icons.exit2.svg"
					 MouseClick="./butQuitPress"/>
			</Border>
			<Widget Width="5"/>
		</HorizontalStack>
		<Container Name="Content" MinimumSize="50,50"/>
	</VerticalStack>
</Border>