129 lines
3.6 KiB
XML
129 lines
3.6 KiB
XML
<UserControl
|
|
x:Class="_29WxOrderWpf.Ctrls.BuyerCtrls.SkuSelectListRowCtrl"
|
|
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.BuyerCtrls"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DesignHeight="150"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<Border
|
|
Margin="4"
|
|
BorderBrush="LightSkyBlue"
|
|
BorderThickness="1"
|
|
CornerRadius="10">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Image
|
|
x:Name="imgSku"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Width="100"
|
|
Height="100"
|
|
Margin="8"
|
|
VerticalAlignment="Top"
|
|
Cursor="Hand"
|
|
MouseDown="imgSku_MouseDown"
|
|
MouseEnter="imgSku_MouseEnter"
|
|
MouseLeave="imgSku_MouseLeave" />
|
|
<Grid
|
|
Grid.Column="1"
|
|
Margin="0,8"
|
|
VerticalAlignment="Center">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<WrapPanel Visibility="{Binding SpecNameStr, Converter={StaticResource HasTextVisibility}}">
|
|
<TextBox
|
|
VerticalAlignment="Top"
|
|
d:Opacity="0.5"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Text="商品标题:"
|
|
TextWrapping="Wrap" />
|
|
<TextBox
|
|
VerticalAlignment="Top"
|
|
d:Opacity="0.5"
|
|
d:Text="商品标题"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Text="{Binding GoodsNameStr}"
|
|
TextWrapping="Wrap" />
|
|
</WrapPanel>
|
|
<WrapPanel Grid.Row="1" Visibility="{Binding SpecNameStr, Converter={StaticResource HasTextVisibility}}">
|
|
<TextBox
|
|
VerticalAlignment="Top"
|
|
d:Opacity="0.5"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Text="商品规格:"
|
|
TextWrapping="Wrap" />
|
|
<TextBox
|
|
Grid.Row="0"
|
|
VerticalAlignment="Top"
|
|
d:Opacity="0.5"
|
|
d:Text="SKU规格"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
FontWeight="Bold"
|
|
IsReadOnly="True"
|
|
Text="{Binding SpecNameStr}"
|
|
TextWrapping="Wrap" />
|
|
</WrapPanel>
|
|
|
|
<WrapPanel Grid.Row="2" Visibility="{Binding groupPrice, Converter={StaticResource HasTextVisibility}}">
|
|
<TextBox
|
|
VerticalAlignment="Top"
|
|
d:Opacity="0.5"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Text="规格单价:"
|
|
TextWrapping="Wrap" />
|
|
<TextBox
|
|
Grid.Row="0"
|
|
VerticalAlignment="Top"
|
|
d:Opacity="0.5"
|
|
d:Text="0.00"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Text="{Binding groupPrice}"
|
|
TextWrapping="Wrap" />
|
|
</WrapPanel>
|
|
</Grid>
|
|
<Button
|
|
x:Name="btnAdd"
|
|
Grid.Column="100"
|
|
MinWidth="48"
|
|
MinHeight="28"
|
|
Margin="8"
|
|
Padding="4"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Click="btnAdd_Click"
|
|
Content="确定关联"
|
|
Style="{StaticResource BasePageButtonStyle}" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|