UCFlawListOnTime.xaml
2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<UserControl x:Class="OS.Spin.View.MainWindowControls.UCFlawListOnTime"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="450" x:Name="View" d:DesignWidth="800">
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="67*"/>
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="93*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="1" HorizontalAlignment="Left" Text="瑕疵信息" FontSize="22" VerticalAlignment="Bottom" FontWeight="Bold"/>
</Grid>
<ListBox x:Name="Flaws" Grid.Row="1" ItemsSource="{Binding ElementName=View, Path=AllIcons, IsAsync=True}">
<ListBox.ItemTemplate>
<DataTemplate>
<Border BorderThickness="1" BorderBrush="DarkGray">
<Grid Width="310" Height="40">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="93*"/>
<ColumnDefinition Width="60"/>
</Grid.ColumnDefinitions>
<TextBlock Width="40" Grid.Column="0" FontSize="22" VerticalAlignment="Bottom" HorizontalAlignment="Center" TextAlignment="Center"
Text="{Binding Path=Id}"></TextBlock>
<TextBlock Width="200" Grid.Column="1" FontSize="22" VerticalAlignment="Bottom" HorizontalAlignment="Center" TextAlignment="Center"
Text="{Binding Path=FlawName}"></TextBlock>
<TextBlock Width="45" Grid.Column="2" FontSize="22" VerticalAlignment="Bottom" HorizontalAlignment="Center" TextAlignment="Center"
Text="{Binding Path=Score}"></TextBlock>
<!--<Grid.Background>
<ImageBrush ImageSource="/images/clothselect/底图.png" Stretch="Fill"/>
</Grid.Background>-->
</Grid>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.Background>
<ImageBrush ImageSource="../images/底图.png" Stretch="Fill"/>
</ListBox.Background>
</ListBox>
</Grid>
</UserControl>