MyCompItem.xaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <Grid x:Class="MyCompItem"
  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="59"
  5. RenderTransformOrigin="0.5,0.5" Background="{StaticResource ColorBrushSemiTransparent}" SnapsToDevicePixels="True">
  6. <Grid.ColumnDefinitions>
  7. <ColumnDefinition Width="7" />
  8. <ColumnDefinition Width="Auto" />
  9. <ColumnDefinition Width="9" />
  10. <ColumnDefinition Width="1*"/>
  11. <ColumnDefinition Width="Auto"/>
  12. <ColumnDefinition Width="7" />
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="1*" />
  16. <RowDefinition Height="17" />
  17. <RowDefinition Height="14" />
  18. <RowDefinition Height="14" />
  19. <RowDefinition Height="1*" />
  20. </Grid.RowDefinitions>
  21. <!--<Rectangle Height="45" Width="45" RadiusX="4" RadiusY="4" Fill="White" Grid.Column="1" Grid.Row="1" IsHitTestVisible="False" SnapsToDevicePixels="True" UseLayoutRounding="False" Grid.RowSpan="3" />-->
  22. <Border Height="45" Width="45" Grid.Column="1" Grid.Row="1" IsHitTestVisible="False" SnapsToDevicePixels="True" UseLayoutRounding="True" Grid.RowSpan="3">
  23. <Border.Clip>
  24. <RectangleGeometry Rect="0,0,45,45" RadiusX="6" RadiusY="6" />
  25. </Border.Clip>
  26. <Image x:Name="PathLogo" RenderOptions.BitmapScalingMode="HighQuality" />
  27. </Border>
  28. <TextBlock x:Name="LabTitle" Grid.Row="1" Grid.Column="3" Grid.ColumnSpan="2" IsHitTestVisible="False" SnapsToDevicePixels="False" UseLayoutRounding="False"
  29. Margin="0,0,0,1" HorizontalAlignment="Left" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"
  30. FontSize="14" Foreground="{StaticResource ColorBrush1}" />
  31. <TextBlock x:Name="LabLeft" Grid.Row="2" Grid.Column="3" IsHitTestVisible="False" SnapsToDevicePixels="False" UseLayoutRounding="False"
  32. HorizontalAlignment="Left" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"
  33. FontSize="12" Foreground="{StaticResource ColorBrushGray3}" />
  34. <!--<TextBlock x:Name="LabRight" Grid.Row="2" Grid.Column="4" IsHitTestVisible="False" SnapsToDevicePixels="False" UseLayoutRounding="False"
  35. HorizontalAlignment="Right" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"
  36. FontSize="12" Foreground="{StaticResource ColorBrushGray3}" />-->
  37. <TextBlock x:Name="LabInfo" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="2" IsHitTestVisible="True" SnapsToDevicePixels="False" UseLayoutRounding="False"
  38. HorizontalAlignment="Left" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"
  39. FontSize="12" Foreground="{StaticResource ColorBrushGray3}"
  40. ToolTipService.InitialShowDelay="80" ToolTipService.Placement="Relative" ToolTipService.PlacementRectangle="-8,-6,500,10000">
  41. <TextBlock.ToolTip>
  42. <ToolTip x:Name="ToolTipInfo" Style="{StaticResource ExtendTextToolTip}" />
  43. </TextBlock.ToolTip>
  44. </TextBlock>
  45. </Grid>