86 lines
2.7 KiB
XML
86 lines
2.7 KiB
XML
<UserControl
|
|
x:Class="_29WxOrderWpf.Ctrls.OrderCtrls.OrderTransitListCtrl"
|
|
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:local="clr-namespace:_29WxOrderWpf.Ctrls.OrderCtrls"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:wpf="WPFCommon"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
Background="White"
|
|
Foreground="DimGray"
|
|
Loaded="OrderTransitListCtrl_Loaded"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<Style BasedOn="{StaticResource TitleContentBaseStyle}" TargetType="wpf:TitleContent">
|
|
<Setter Property="Placement" Value="Left" />
|
|
<Setter Property="TitleVerticalAlignment" Value="Center" />
|
|
<Setter Property="LeftTitlePadding" Value="0,0,0,0" />
|
|
</Style>
|
|
<Style TargetType="wpf:SpacingStackPanel">
|
|
<Setter Property="Margin" Value="3,0" />
|
|
</Style>
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Height="30" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Text="店铺:" />
|
|
<TextBox
|
|
VerticalContentAlignment="Center"
|
|
d:Text="音诉云仓"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
Foreground="DimGray"
|
|
IsReadOnly="True"
|
|
Text="{Binding ShopNameStr}" />
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Text="订单号:" />
|
|
<TextBox
|
|
VerticalContentAlignment="Center"
|
|
d:Text="3700000000000000"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
Foreground="DimGray"
|
|
IsReadOnly="True"
|
|
Text="{Binding OrderIdStr}" />
|
|
</StackPanel>
|
|
<ListBox
|
|
x:Name="lbxTransitList"
|
|
Grid.Row="4"
|
|
Margin="7,0,7,0"
|
|
HorizontalContentAlignment="Stretch"
|
|
BorderThickness="0">
|
|
<!-- 使用自定义属性模板去除ListBox高亮显示框 -->
|
|
<ListBox.ItemContainerStyle>
|
|
<Style TargetType="ListBoxItem">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListBoxItem">
|
|
<ContentPresenter
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ListBox.ItemContainerStyle>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<!-- 此处绑定将数据源传递给子自定义控件 -->
|
|
<local:OrderTransitListDetailCtrl DataContext="{Binding}" />
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Grid>
|
|
</UserControl>
|