ShowStatus.xaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <UserControl
  2. x:Class="SHJX.Service.Main.Views.ShowStatus"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:views="clr-namespace:SHJX.Service.Library.Views;assembly=SHJX.Service.Library"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. mc:Ignorable="d" Width="460" Height="230">
  11. <!--<UserControl.Resources>
  12. --><!-- 下面这段代码不用,不能变成Uniform的样式 --><!--
  13. <Style x:Key="ItemContainerStyle"
  14. TargetType="{x:Type ListViewItem}">
  15. <Setter Property="Template">
  16. <Setter.Value>
  17. <ControlTemplate TargetType="{x:Type ListViewItem}">
  18. <Border x:Name="Bd"
  19. Background="{TemplateBinding Background}"
  20. BorderBrush="{TemplateBinding BorderBrush}"
  21. BorderThickness="0">
  22. <ContentPresenter />
  23. </Border>
  24. <ControlTemplate.Triggers>
  25. <Trigger Property="IsSelected"
  26. Value="true">
  27. <Setter TargetName="Bd"
  28. Property="Background"
  29. Value="Transparent" />
  30. </Trigger>
  31. </ControlTemplate.Triggers>
  32. </ControlTemplate>
  33. </Setter.Value>
  34. </Setter>
  35. </Style>
  36. <DataTemplate x:Key="itemTemplate">
  37. <views:CenterControl BackColor="{Binding BackColor}"
  38. CenterText="{Binding CenterText}"
  39. TagNameText="{Binding TagNameText}" />
  40. </DataTemplate>
  41. </UserControl.Resources>-->
  42. <Grid>
  43. <TextBlock x:Name="textblock" Width="460" Background="#FFD2DCFB"
  44. Height="230" FontSize="16" FontFamily="微软雅黑" FontWeight="Normal" FontStretch="Condensed" Foreground="#FF100C8A"
  45. TextAlignment="Center" TextWrapping="Wrap" TextTrimming="CharacterEllipsis" Margin="0"
  46. HorizontalAlignment="Left" VerticalAlignment="Center" LineHeight="23" >
  47. <Run Text="{Binding ShowstatusValue}"/>
  48. </TextBlock>
  49. <!--<ListView x:Name="StatusShow"
  50. Background="White"
  51. >
  52. <ListView.ItemsPanel>
  53. <ItemsPanelTemplate>
  54. <UniformGrid Columns="2" Rows="10" />
  55. </ItemsPanelTemplate>
  56. </ListView.ItemsPanel>
  57. <ListView.View>
  58. <GridView>
  59. <GridViewColumn Header="列1" Width="50" DisplayMemberBinding="{Binding ShowstatusValue.CurrentContent}"/>
  60. <GridViewColumn Header="列2" Width="50" DisplayMemberBinding="{Binding ShowstatusValue.Name}"/>
  61. </GridView>
  62. </ListView.View>
  63. </ListView>-->
  64. </Grid>
  65. </UserControl>