|
@@ -13,36 +13,35 @@
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
<Grid>
|
|
|
<Border Name="Mask" CornerRadius="8 8 0 0" ClipToBounds="True">
|
|
|
- <StackPanel>
|
|
|
- <Image Cursor="Hand" Margin="-1" asyncImageLoader:ImageLoader.Source="{Binding ElementName=newsItem, Path=News.CoverImageUrl}"
|
|
|
- PointerPressed="CoverImageClicked" Name="coverImage"/>
|
|
|
- </StackPanel>
|
|
|
+ <StackPanel>
|
|
|
+ <Image Cursor="Hand" Margin="-1"
|
|
|
+ asyncImageLoader:ImageLoader.Source="{Binding ElementName=newsItem, Path=News.CoverImageUrl}"
|
|
|
+ PointerPressed="CoverImageClicked" Name="coverImage" />
|
|
|
+ </StackPanel>
|
|
|
</Border>
|
|
|
</Grid>
|
|
|
<StackPanel Margin="8 0" Orientation="Horizontal">
|
|
|
<Image Margin="0 0 5 0" Width="25"
|
|
|
- Source="{Binding ElementName=newsItem, Path=News.ResolvedIconUrl, Converter={converters:ImagePathToBitmapConverter}}"/>
|
|
|
+ Source="{Binding ElementName=newsItem, Path=News.ResolvedIconUrl, Converter={converters:ImagePathToBitmapConverter}}" />
|
|
|
<Label VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Width="200" TextTrimming="CharacterEllipsis" MaxHeight="50"
|
|
|
- ui:Hyperlink.Url="{Binding ElementName=newsItem, Path=News.Url}"
|
|
|
- ToolTip.Tip="{Binding ElementName=newsItem, Path=News.Title}"
|
|
|
- TextWrapping="Wrap"
|
|
|
- Text="{Binding ElementName=newsItem, Path=News.Title}"/>
|
|
|
- <TextBlock Text="" FontFamily="{DynamicResource Feather}"/>
|
|
|
- </StackPanel>
|
|
|
+ <TextBlock Width="200" TextTrimming="CharacterEllipsis" MaxHeight="50"
|
|
|
+ ui:Hyperlink.Url="{Binding ElementName=newsItem, Path=News.Url}"
|
|
|
+ TextWrapping="Wrap">
|
|
|
+ <Run Text="{Binding ElementName=newsItem, Path=News.Title}" />
|
|
|
+ <Run Text="{DynamicResource icon-link}" Classes="pixi-icon" />
|
|
|
+ </TextBlock>
|
|
|
</Label>
|
|
|
</StackPanel>
|
|
|
<Grid>
|
|
|
<Border IsVisible="{Binding ElementName=newsItem, Path=News.IsNew}"
|
|
|
Margin="2.5 2.5" Background="{DynamicResource ThemeAccentBrush}" HorizontalAlignment="Left"
|
|
|
Padding="5 2.5" CornerRadius="5">
|
|
|
- <TextBlock Text="New!" Foreground="White" FontSize="12" FontStyle="Italic"/>
|
|
|
+ <TextBlock Text="New!" Foreground="White" FontSize="12" FontStyle="Italic" />
|
|
|
</Border>
|
|
|
<TextBlock Margin="8 5" HorizontalAlignment="Right" FontSize="12" Foreground="LightGray"
|
|
|
- Text="{Binding ElementName=newsItem, Path=News.Date, StringFormat=d}"/>
|
|
|
+ Text="{Binding ElementName=newsItem, Path=News.Date, StringFormat=d}" />
|
|
|
<!--TODO: Converter culture was in above date-->
|
|
|
</Grid>
|
|
|
</StackPanel>
|
|
|
</Border>
|
|
|
-</UserControl>
|
|
|
+</UserControl>
|