aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/MessageBox.template
blob: 129e24ca244efcaec17af5d3aad5c63c972a8079 (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" Width="Stretched" MinimumSize="200,0"
				Background="{./TitleBarBackground}">
			<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="{./TitleBarForeground}" Margin="1" TextAlignment="Center" Text="{./Caption}" />
				<Border CornerRadius="3" 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="50" Height="30" Path="{./MsgIcon}" />
			<Label Margin="5" Font="{./Font}" Width="Fit" Text="{./Message}"
				TextAlignment="Left"
				Multiline="true" />		
		</HorizontalStack>
		<HorizontalStack Margin="1" Spacing="0" Width="Fit" Height="Fit" HorizontalAlignment="Right">
			<Button Width="Fit" Caption="{./OkMessage}" MouseClick="./onOkButtonClick" />
			<Button Width="Fit" Caption="{./CancelMessage}" MouseClick="./onCancelButtonClick" />
		</HorizontalStack>
	</VerticalStack>
</Border>