diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-07 07:43:48 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-07 07:43:48 +0100 |
| commit | 158bc472eff0771479d48e5bd74a8141d62ab60a (patch) | |
| tree | 492f2d255de49b5c04ebba237ecb40b265bd6534 /Crow.ControlsLib/Templates/MessageBox.template | |
| parent | a330b907a9c9252c480ea352606d961bdc7c3ecb (diff) | |
:book: , renames, move some controls to other project file
Diffstat (limited to 'Crow.ControlsLib/Templates/MessageBox.template')
| -rw-r--r-- | Crow.ControlsLib/Templates/MessageBox.template | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Crow.ControlsLib/Templates/MessageBox.template b/Crow.ControlsLib/Templates/MessageBox.template new file mode 100644 index 00000000..c33eb869 --- /dev/null +++ b/Crow.ControlsLib/Templates/MessageBox.template @@ -0,0 +1,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="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="{./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="20%" Height="30" Path="{./MsgIcon}" /> + <Label Margin="5" Font="{./Font}" Width="Fit" Text="{./Message}" + TextAlignment="Left" + Multiline="true" /> + </HorizontalStack> + <HorizontalStack Margin="1" Spacing="0" Height="Fit" Width="60%" HorizontalAlignment="Right"> + <Button Width="50%" Caption="{./OkMessage}" MouseClick="./onOkButtonClick" /> + <Button Width="50%" Caption="{./CancelMessage}" MouseClick="./onCancelButtonClick" /> + </HorizontalStack> + </VerticalStack> +</Border> |