| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <UserControl
- x:Class="SHJX.Service.Main.Views.ShowStatus"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:views="clr-namespace:SHJX.Service.Library.Views;assembly=SHJX.Service.Library"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d" Width="460" Height="230">
- <!--<UserControl.Resources>
- --><!-- 下面这段代码不用,不能变成Uniform的样式 --><!--
- <Style x:Key="ItemContainerStyle"
- TargetType="{x:Type ListViewItem}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListViewItem}">
- <Border x:Name="Bd"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="0">
- <ContentPresenter />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected"
- Value="true">
- <Setter TargetName="Bd"
- Property="Background"
- Value="Transparent" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <DataTemplate x:Key="itemTemplate">
- <views:CenterControl BackColor="{Binding BackColor}"
- CenterText="{Binding CenterText}"
- TagNameText="{Binding TagNameText}" />
- </DataTemplate>
- </UserControl.Resources>-->
- <Grid>
- <TextBlock x:Name="textblock" Width="460" Background="#FFD2DCFB"
- Height="230" FontSize="16" FontFamily="微软雅黑" FontWeight="Normal" FontStretch="Condensed" Foreground="#FF100C8A"
- TextAlignment="Center" TextWrapping="Wrap" TextTrimming="CharacterEllipsis" Margin="0"
- HorizontalAlignment="Left" VerticalAlignment="Center" LineHeight="23" >
- <Run Text="{Binding ShowstatusValue}"/>
- </TextBlock>
- <!--<ListView x:Name="StatusShow"
- Background="White"
- >
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid Columns="2" Rows="10" />
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.View>
- <GridView>
- <GridViewColumn Header="列1" Width="50" DisplayMemberBinding="{Binding ShowstatusValue.CurrentContent}"/>
- <GridViewColumn Header="列2" Width="50" DisplayMemberBinding="{Binding ShowstatusValue.Name}"/>
-
- </GridView>
- </ListView.View>
- </ListView>-->
- </Grid>
- </UserControl>
|