PageRenderTime 47ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/V2/trunk/RI/Desktop/StockTraderRI.Modules.News/Article/NewsReader.xaml

#
XAML | 33 lines | 33 code | 0 blank | 0 comment | 0 complexity | b8924d007a0d0c6dc057054d9357dad7 MD5 | raw file
  1. <UserControl x:Class="StockTraderRI.Modules.News.Article.NewsReader"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Height="Auto" Width="Auto" Margin="0,0,0,0" x:Name="newsReader">
  5. <UserControl.Resources>
  6. <Storyboard x:Key="FadeIn">
  7. <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="newsReader" Storyboard.TargetProperty="(UIElement.Opacity)">
  8. <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
  9. <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
  10. </DoubleAnimationUsingKeyFrames>
  11. </Storyboard>
  12. </UserControl.Resources>
  13. <UserControl.Triggers>
  14. <EventTrigger RoutedEvent="FrameworkElement.Loaded">
  15. <BeginStoryboard Storyboard="{StaticResource FadeIn}"/>
  16. </EventTrigger>
  17. </UserControl.Triggers>
  18. <Border BorderThickness="1" Padding="5" Background="#FFFFFFFF">
  19. <Grid>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="Auto" />
  23. <RowDefinition Height="*" />
  24. </Grid.RowDefinitions>
  25. <TextBlock Grid.Row="0" Margin="5" Height="Auto" FontSize="11" FontWeight="Bold" Foreground="SteelBlue" TextAlignment="Left" TextWrapping="Wrap" HorizontalAlignment="Left" Width="Auto" Text="{Binding PublishedDate}"></TextBlock>
  26. <TextBlock Grid.Row="1" Height="Auto" Margin="5" FontSize="18" FontWeight="Normal" Foreground="SteelBlue" TextAlignment="Left" TextWrapping="Wrap" Text="{Binding Path=Title}"></TextBlock>
  27. <TextBox Grid.Row="2" BorderBrush="Transparent" Background="#FFFFFFFF" BorderThickness="0,0,0,0" FontSize="12" FontStyle="Normal"
  28. FontWeight="Normal" Foreground="#FF000000" Opacity="1" OpacityMask="{x:Null}" Text="{Binding Body}"
  29. TextAlignment="Left" TextWrapping="Wrap" Block.LineHeight="Auto" HorizontalAlignment="Left" VerticalAlignment="Top"
  30. Style="{StaticResource PopupTextBoxStyle}"/>
  31. </Grid>
  32. </Border>
  33. </UserControl>