aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/MessageBox.template
diff options
context:
space:
mode:
authorj-p <jp.bruyere@live.be>2016-10-04 16:55:37 +0200
committerGitHub <noreply@github.com>2016-10-04 16:55:37 +0200
commitfaad767304aa1280a907c9851e40d2b82a1a4f54 (patch)
treef345bb4a1db2f8f16936019ee9651a20953b6a99 /Templates/MessageBox.template
parent2616e6ee7a1a34036cc002d28543d0d7a657fdb2 (diff)
Inherited dims (#31)v0.5
* Implement 'Inherit' measure to reduce bindings load. modifié : Templates/ArrowButTemplate.crow modifié : Templates/Button.template modifié : Templates/CheckBox.template modifié : Templates/ComboBox.template modifié : Templates/DirectoryView.template modifié : Templates/Expandable.template modifié : Templates/GroupBox.template modifié : Templates/ListBox.template modifié : Templates/Menu.template modifié : Templates/MenuItem.template modifié : Templates/MessageBox.template modifié : Templates/Popper.template modifié : Templates/RadioButton.template modifié : Templates/ScrollBar.template modifié : Templates/ScrollingListBox.goml modifié : Templates/Spinner.template modifié : Templates/TabItem.template modifié : Templates/TreeView.template modifié : Templates/Window.template modifié : Templates/treeList.crow modifié : Tests/Interfaces/Container/0.crow modifié : Tests/Interfaces/TemplatedContainer/testTreeView.crow modifié : Tests/Interfaces/TemplatedControl/testItemTemplateTag.crow modifié : Tests/Interfaces/TmpExpandable.goml modifié : Tests/Interfaces/treeList.crow modifié : Tests/ui/Popper.template modifié : Tests/ui/tmpWindow.crow modifié : src/GraphicObjects/GraphicObject.cs modifié : src/Measure.cs * leave template bindings for sizing in ScrollBar template because Inherited values are not working. modifié : Templates/ScrollBar.template renommé : Tests/Interfaces/TemplatedControl/testScrollbar.goml -> Tests/Interfaces/TemplatedControl/testScrollbar.crow renommé : Tests/Interfaces/TemplatedControl/testSpinner.goml -> Tests/Interfaces/TemplatedControl/testSpinner.crow modifié : Tests/Tests.csproj * update nuspec
Diffstat (limited to 'Templates/MessageBox.template')
-rw-r--r--Templates/MessageBox.template14
1 files changed, 7 insertions, 7 deletions
diff --git a/Templates/MessageBox.template b/Templates/MessageBox.template
index e9dc5148..9c361ea6 100644
--- a/Templates/MessageBox.template
+++ b/Templates/MessageBox.template
@@ -1,14 +1,14 @@
<?xml version="1.0"?>
-<Border Height="{./HeightPolicy}" Width="{./WidthPolicy}" CornerRadius="0"
+<Border CornerRadius="0"
MouseEnter="./onBorderMouseEnter"
MouseLeave="./onBorderMouseLeave">
- <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}" Background="{./Background}">
- <Border BorderWidth="0" Foreground="White" Width="{./WidthPolicy}" Height="Fit"
+ <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" Width="{./WidthPolicy}" Height="Fit" >
+ <HorizontalStack Name="hs" Margin="2" Spacing="1" Height="Fit" >
<GraphicObject Width="5" Height="5"/>
<Image Margin="1" Width="12" Height="12" Path="{./Icon}"/>
- <Label Foreground="White" Width="{./WidthPolicy}" Margin="1" TextAlignment="Center" Text="{./Title}" />
+ <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"
@@ -17,9 +17,9 @@
<GraphicObject Width="5" Height="5"/>
</HorizontalStack>
</Border>
- <HorizontalStack Margin="5" Height="{./HeightPolicy}" Width="{./WidthPolicy}">
+ <HorizontalStack Margin="5">
<Image Name="Image" Width="20%" Height="20" Path="#Crow.Images.Icons.iconInfo.svg" />
- <Label Margin="5" Font="serif, 10" Height="{./HeightPolicy}" Width="80%" Text="{./Message}"
+ <Label Margin="5" Font="serif, 10" Width="80%" Text="{./Message}"
TextAlignment="Left"
Multiline="true" />
</HorizontalStack>