MyLocalModItem.xaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <Grid x:Class="MyLocalModItem"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. x:Name="PanBack" Height="44"
  5. RenderTransformOrigin="0.5,0.5" Background="{StaticResource ColorBrushSemiTransparent}" SnapsToDevicePixels="True">
  6. <Grid.ColumnDefinitions>
  7. <ColumnDefinition Width="6" />
  8. <ColumnDefinition Width="34" />
  9. <ColumnDefinition Width="7" />
  10. <ColumnDefinition Width="Auto" />
  11. <ColumnDefinition Width="1*" />
  12. <ColumnDefinition Width="4" x:Name="ColumnPaddingRight" />
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="1*" />
  16. <RowDefinition Height="17" />
  17. <RowDefinition Height="18" />
  18. <RowDefinition Height="1*" />
  19. </Grid.RowDefinitions>
  20. <!-- Logo -->
  21. <Border Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" IsHitTestVisible="False" SnapsToDevicePixels="True" UseLayoutRounding="True"
  22. HorizontalAlignment="Right" VerticalAlignment="Center" Width="34" Height="34">
  23. <Border.Clip>
  24. <RectangleGeometry Rect="0,0,34,34" RadiusX="6" RadiusY="6" />
  25. </Border.Clip>
  26. <Image x:Name="PathLogo" RenderOptions.BitmapScalingMode="HighQuality" />
  27. </Border>
  28. <!-- 标题 -->
  29. <StackPanel Grid.Column="3" Grid.ColumnSpan="2" Grid.Row="1" VerticalAlignment="Bottom" Margin="0,1,0,0" Orientation="Horizontal"
  30. IsHitTestVisible="False" SnapsToDevicePixels="False" UseLayoutRounding="False">
  31. <TextBlock x:Name="LabTitle" TextTrimming="WordEllipsis" FontSize="14" />
  32. <TextBlock x:Name="LabTitleRaw" TextTrimming="WordEllipsis" FontSize="12" Foreground="{StaticResource ColorBrushGray1}" Opacity="0.4" VerticalAlignment="Bottom" Visibility="Collapsed" />
  33. </StackPanel>
  34. <!-- Tag 与 详情 -->
  35. <StackPanel x:Name="PanTags" Grid.Row="2" Grid.Column="3" Orientation="Horizontal" VerticalAlignment="Bottom" Margin="-1,0,1,0" Visibility="Collapsed" IsHitTestVisible="False">
  36. <!--<Border Background="{DynamicResource ColorBrush6}" Padding="3,1" CornerRadius="3" Margin="0,0,4,0" SnapsToDevicePixels="True" UseLayoutRounding="False">
  37. <TextBlock Text="科技" Foreground="{DynamicResource ColorBrush2}" FontSize="11" />
  38. </Border>-->
  39. </StackPanel>
  40. <TextBlock x:Name="LabInfo" Grid.Row="2" Grid.Column="4" VerticalAlignment="Bottom" Margin="0,0,3,1"
  41. TextTrimming="CharacterEllipsis" FontSize="12" Foreground="{StaticResource ColorBrushGray3}"
  42. IsHitTestVisible="False" SnapsToDevicePixels="False" UseLayoutRounding="False" />
  43. </Grid>