/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

  1. <UserControl x:Class="StockTraderRI.Modules.Position.Orders.OrderCommandsView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:inf="clr-namespace:StockTraderRI.Infrastructure;assembly=StockTraderRI.Infrastructure">
  5. <UserControl.Resources>
  6. <Style TargetType="{x:Type Button}">
  7. <Setter Property="Template">
  8. <Setter.Value>
  9. <ControlTemplate TargetType="{x:Type Button}">
  10. <Border BorderBrush="#FFD2E6F6" CornerRadius="8" Padding="4,4,4,4" BorderThickness="2,2,2,2">
  11. <TextBlock x:Name="ButtonTextBlock" FontFamily="Franklin Gothic" FontSize="14" FontWeight="Normal" Foreground="#FF79B8EC" TextAlignment="Center" TextWrapping="Wrap">
  12. <ContentPresenter/>
  13. </TextBlock>
  14. </Border>
  15. <ControlTemplate.Triggers>
  16. <Trigger Property="IsEnabled" Value="False">
  17. <Setter TargetName="ButtonTextBlock" Property="Foreground" Value="LightGray"/>
  18. </Trigger>
  19. </ControlTemplate.Triggers>
  20. </ControlTemplate>
  21. </Setter.Value>
  22. </Setter>
  23. </Style>
  24. </UserControl.Resources>
  25. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  26. <Button Name="SubmitButton" Command="{Binding SubmitCommand}">Submit</Button>
  27. <Button Name="CancelButton" Command="{Binding CancelCommand}">Cancel</Button>
  28. </StackPanel>
  29. </UserControl>