/V1/trunk/Source/StockTraderRI/StockTraderRI.Modules.Position/Orders/OrderCommandsView.xaml
# · XAML · 29 lines · 29 code · 0 blank · 0 comment · 0 complexity · 1b1a12337e02ab7c4225ddc44c1d882a MD5 · raw file
- <UserControl x:Class="StockTraderRI.Modules.Position.Orders.OrderCommandsView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:inf="clr-namespace:StockTraderRI.Infrastructure;assembly=StockTraderRI.Infrastructure">
- <UserControl.Resources>
- <Style TargetType="{x:Type Button}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border BorderBrush="#FFD2E6F6" CornerRadius="8" Padding="4,4,4,4" BorderThickness="2,2,2,2">
- <TextBlock x:Name="ButtonTextBlock" FontFamily="Franklin Gothic" FontSize="14" FontWeight="Normal" Foreground="#FF79B8EC" TextAlignment="Center" TextWrapping="Wrap">
- <ContentPresenter/>
- </TextBlock>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="ButtonTextBlock" Property="Foreground" Value="LightGray"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Name="SubmitButton" Command="{Binding SubmitCommand}">Submit</Button>
- <Button Name="CancelButton" Command="{Binding CancelCommand}">Cancel</Button>
- </StackPanel>
- </UserControl>