|
<UserControl x:Class="Signum.Windows.ButtonBar"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:m="clr-namespace:Signum.Windows" x:Name="me">
<UserControl.Background>
<LinearGradientBrush StartPoint="0.5 0" EndPoint="0.5 1">
<GradientStop Color="#FFF0F8FF" Offset="0"/>
<GradientStop Color="#FFD8EBFF" Offset="0.927"/>
<GradientStop Color="#FF6E8194" Offset="0.935"/>
<GradientStop Color="#336E8194" Offset="0.987"/>
</LinearGradientBrush>
</UserControl.Background>
<StackPanel Orientation="Horizontal" Margin="0,0,0,4">
<m:ToolBarButton x:Name="btOk" Image="Images\ok.png" Background="Green" Content="{m:Loc Ok}" MinWidth="50" IsDefault="true" Visibility="{Binding OkVisible, ElementName=me, Converter={x:Static m:Converters.BoolToVisibility}}" />
<m:ToolBarButton x:Name="btSave" Image="Images\save.png" Background="Blue" Content="{m:Loc Save}" MinWidth="50" Visibility="{Binding SaveVisible, ElementName=me, Converter={x:Static m:Converters.BoolToVisibility}}"/>
<StackPanel x:Name="stackPanel" Orientation="Horizontal"/>
<m:ToolBarButton x:Name="btReload" Image="Images\reload.png" Background="RoyalBlue" Content="{m:Loc Reload}" Visibility="{Binding ReloadVisible, ElementName=me, Converter={x:Static m:Converters.BoolToVisibility}}" MinWidth="50"/>
</StackPanel>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm Computer Scientist, one of the founders of Signum Software, and the lead developer behind Signum Framework.
www.signumframework.com
I love programming in C#, Linq, Compilers, Algorithms, Functional Programming, Computer Graphics, Maths...