PageRenderTime 52ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/V4/StockTrader RI/Desktop/StockTraderRI.Modules.Market/TrendLine/TrendLineView.xaml

#
XAML | 33 lines | 31 code | 0 blank | 2 comment | 0 complexity | 87ea3edbe525924b0b956b7e8d577850 MD5 | raw file
  1. <UserControl
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:chartControls="clr-namespace:StockTraderRI.ChartControls;assembly=StockTraderRI.ChartControls"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. Height="190" x:Class="StockTraderRI.Modules.Market.TrendLine.TrendLineView"
  7. >
  8. <UserControl.Resources>
  9. <!-- By convention every view inside the ResearchControl (ResearchRegion) has to declare
  10. a DataTemplate with the "HeaderIcon" key which defines the icon on the Header -->
  11. <DataTemplate x:Key="HeaderIcon">
  12. <Grid Margin="15,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="13" Width="16">
  13. <Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" Data="M403.16667,431.66667 L403.16667,448.33299 417.00699,448.33299 417.00699,432.24967"/>
  14. <Path HorizontalAlignment="Left" Margin="4.503,6,0,0" Width="2" Fill="{x:Null}" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" Data="M403.16667,431.66667 L403.16667,448.33299"/>
  15. <Path HorizontalAlignment="Right" Margin="0,2,4.751,0" Width="2" Fill="{x:Null}" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" Data="M403.16667,431.66667 L403.16667,448.33299"/>
  16. </Grid>
  17. </DataTemplate>
  18. </UserControl.Resources>
  19. <Border BorderThickness="0,0,0,1" BorderBrush="#FFFFFFFF" Padding="10,10,10,10">
  20. <Grid x:Name="MainGrid">
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="Auto"/>
  23. <RowDefinition Height="Auto"/>
  24. </Grid.RowDefinitions>
  25. <StackPanel Orientation="Horizontal">
  26. <TextBlock Text="{Binding TickerSymbol}" Style="{StaticResource TextBlockSectionTitle}" />
  27. <TextBlock Text=" HISTORICAL DATA" AutomationProperties.AutomationId="HistoricalDataTextBlock" Style="{StaticResource TextBlockSectionTitle}" />
  28. </StackPanel>
  29. <chartControls:LineChart Height="100" x:Name="trendLineChart" Margin="0,20,0,0" ValuePath="Value" LabelPath="DateTimeMarker" Grid.Row="1"
  30. ItemsSource="{Binding Path=HistoryCollection}" />
  31. </Grid>
  32. </Border>
  33. </UserControl>