56 строки
3.1 KiB
Plaintext
56 строки
3.1 KiB
Plaintext
|
<UserControl
|
||
|
x:Class="Common.WhatsNewTemplate"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:local="using:Common"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
mc:Ignorable="d"
|
||
|
d:DesignHeight="300"
|
||
|
d:DesignWidth="400">
|
||
|
<Grid>
|
||
|
<GridView x:Name="gridview"
|
||
|
Margin="-5,15,20,0"
|
||
|
ItemsSource="{Binding }"
|
||
|
IsSwipeEnabled="False"
|
||
|
IsItemClickEnabled="True"
|
||
|
ScrollViewer.VerticalScrollMode="Disabled"
|
||
|
ScrollViewer.VerticalScrollBarVisibility="Disabled"
|
||
|
SelectionMode="Single"
|
||
|
ItemClick="GridView_ItemClick"
|
||
|
>
|
||
|
<GridView.ItemsPanel>
|
||
|
<ItemsPanelTemplate>
|
||
|
<ItemsWrapGrid Orientation="Horizontal" />
|
||
|
</ItemsPanelTemplate>
|
||
|
</GridView.ItemsPanel>
|
||
|
<GridView.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<Grid x:Name="Tilegrid" Height="260" Width="300" Margin="5">
|
||
|
<Border Name="gridbo" Height="Auto" BorderBrush="#eaeaea" BorderThickness="1">
|
||
|
<StackPanel Orientation="Vertical">
|
||
|
<Grid>
|
||
|
<Image x:Name="_whatsimage" Height="160" Stretch="Fill" Source="{ Binding DesktopImage}" HorizontalAlignment="Left"/>
|
||
|
|
||
|
</Grid>
|
||
|
<StackPanel Background="White" Height="100" BorderBrush="#eaeaea" BorderThickness="0,1,0,0">
|
||
|
<TextBlock x:Name="title" FontSize="14" FontWeight="SemiBold" FontFamily="Roboto Slab" Text="{Binding Header}" Margin="11,12,0,0" TextWrapping="WrapWholeWords" />
|
||
|
<TextBlock Text="{Binding Description}" ToolTipService.ToolTip="{Binding Description}" ToolTipService.Placement="Bottom" Height="30" TextTrimming="WordEllipsis" FontSize="11" Margin="11,6,8,8" TextWrapping="WrapWholeWords" >
|
||
|
|
||
|
</TextBlock>
|
||
|
<Border VerticalAlignment="Center" HorizontalAlignment="Right" Margin="2,0,10,5" Background="CornflowerBlue" CornerRadius="10">
|
||
|
<TextBlock Foreground="White" Margin="12,3,12,2" HorizontalAlignment="Right" Text="{Binding Product}" FontFamily="Roboto Slab" FontWeight="SemiBold" FontSize="9" />
|
||
|
</Border>
|
||
|
</StackPanel>
|
||
|
<Grid>
|
||
|
|
||
|
</Grid>
|
||
|
</StackPanel>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
</GridView.ItemTemplate>
|
||
|
</GridView>
|
||
|
</Grid>
|
||
|
</UserControl>
|