]> O.S.I.I.S - jp/crow.git/commitdiff
add template binding for props of button
authorjpbruyere <jp.bruyere@hotmail.com>
Fri, 12 Feb 2016 18:55:13 +0000 (19:55 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Fri, 12 Feb 2016 19:02:04 +0000 (20:02 +0100)
Templates/Button.crow

index 54788a1dd7cd30f6d98ef93cef6eaa3fb979564a..75decb217c5584df42cb3cefd09abefb4017ce62 100755 (executable)
@@ -1,11 +1,11 @@
 <?xml version="1.0"?>
-<Border Background="Gray" MinimumSize="50;20" Height="{../TemplatedHeight}" Width="{../TemplatedWidth}"
-               Foreground="Transparent" CornerRadius="3" BorderWidth="1" 
+<Border Background="{../Background}" MinimumSize="50;20" Height="{../TemplatedHeight}" Width="{../TemplatedWidth}"
+               Foreground="Transparent" CornerRadius="{../CornerRadius}" BorderWidth="1" 
        MouseEnter="{Foreground=vgradient|0:White|0,2:Gray|0,9:Gray|1:Black;caption.Foreground=White}"
-       MouseLeave="{Foreground=Transparent;caption.Foreground=Black}"
+       MouseLeave="{Foreground=Transparent;caption.Foreground=DimGray}"
        MouseDown="{Foreground=vgradient|0:Black|0,05:Gray|0,85:Gray|1:White}"
        MouseUp="{Foreground=vgradient|0:White|0,2:Gray|0,9:Gray|1:Black}"                  
        >
 <!--   <Image Height="0" Width="0" Margin="0" Path="{../../Image}" SvgSub="{../../SvgSub}"/>-->
-       <Label Font="{../../Font}" Name="caption" Margin="5" Foreground="Black" Text="{../../Caption}"/>
+       <Label Font="{../../Font}" Name="caption" Margin="5" Foreground="DimGray" Text="{../../Caption}"/>
 </Border>
\ No newline at end of file