PageRenderTime 41ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/V1/trunk/Source/StockTraderRI/StockTraderRI.Modules.WatchList/AddWatch/AddWatchView.xaml

#
XAML | 33 lines | 33 code | 0 blank | 0 comment | 0 complexity | 23cdf7269783aabefdf74b0f57dcdac4 MD5 | raw file
  1. <UserControl x:Class="StockTraderRI.Modules.Watch.AddWatch.AddWatchView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. >
  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 FontFamily="Franklin Gothic" FontSize="14" FontWeight="Normal" Foreground="#FF79B8EC" TextAlignment="Center" TextWrapping="Wrap">
  12. <ContentPresenter/>
  13. </TextBlock>
  14. </Border>
  15. </ControlTemplate>
  16. </Setter.Value>
  17. </Setter>
  18. </Style>
  19. <Style TargetType="{x:Type TextBox}">
  20. <Setter Property="FontFamily" Value="Franklin Gothic"/>
  21. <Setter Property="FontSize" Value="16"/>
  22. <Setter Property="Foreground" Value="#FF77B6EB"/>
  23. <Setter Property="TextAlignment" Value="Left"/>
  24. <Setter Property="TextWrapping" Value="Wrap"/>
  25. </Style>
  26. </UserControl.Resources>
  27. <Grid>
  28. <StackPanel Orientation="Horizontal">
  29. <TextBox Name="AddWatchTextBox" MinWidth="100"/>
  30. <Button Name="AddWatchButton" DockPanel.Dock="Right" Command="{Binding}" CommandParameter="{Binding Text, ElementName=AddWatchTextBox}">Add To Watch List</Button>
  31. </StackPanel>
  32. </Grid>
  33. </UserControl>