aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/MessageBox.template
blob: 9c361ea691134bc57f5c777a703bfe7a6bdef5b6 (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
<?xml version="1.0"?>
<Border	CornerRadius="0"
				MouseEnter="./onBorderMouseEnter"
				MouseLeave="./onBorderMouseLeave">
	<VerticalStack Background="{./Background}">
		<Border BorderWidth="0" Foreground="White" Height="Fit" 
				Background="vgradient|0:0.4,0.6,0.0,0.5|1:0.0,0.8,0.8,0.9">
			<HorizontalStack Name="hs" Margin="2" Spacing="1" Height="Fit" >
				<GraphicObject Width="5" Height="5"/>
				<Image Margin="1" Width="12" Height="12" Path="{./Icon}"/>
				<Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Center" Text="{./Title}" />
				<Border CornerRadius="6" BorderWidth="1" Foreground="Transparent"  Height="12" Width="12"
					MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
					<Image Focusable="true" Name="Image" Path="#Crow.Images.Icons.exit2.svg"
						 MouseClick="./butQuitPress"/>
				</Border>
				<GraphicObject Width="5" Height="5"/>
			</HorizontalStack>
		</Border>
		<HorizontalStack Margin="5">
			<Image Name="Image" Width="20%" Height="20" Path="#Crow.Images.Icons.iconInfo.svg" />
			<Label Margin="5" Font="serif, 10" Width="80%" Text="{./Message}"
				TextAlignment="Left"
				Multiline="true" />		
		</HorizontalStack>
		<HorizontalStack Margin="1" Spacing="0" Height="Fit" Width="60%" HorizontalAlignment="Right">
			<Button Width="50%" Caption="Ok" MouseClick="./onOkButtonClick" />
			<Button Width="50%" Caption="Cancel" MouseClick="./onCancelButtonClick" />
		</HorizontalStack>
	</VerticalStack>
</Border>