SaleWPF/Views/EditCashItem.xaml
(完整代码) 1KB<UserControl x:Class="SaleWPF.Views.EditCashItem"
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"
xmlns:rubyer="http://rubyer.io/winfx/xaml/toolkit"
xmlns:viewmodels="clr-namespace:SaleWPF.ViewModels"
xmlns:local="clr-namespace:SaleWPF.Views"
d:DataContext="{d:DesignInstance Type=viewmodels:EditCashItemViewModel}"
mc:Ignorable="d"
>
<Grid Margin="10"
rubyer:GridHelper.ColumnDefinitions="Auto, *"
rubyer:GridHelper.RowDefinitions="Auto,Auto, Auto, Auto"
rubyer:PanelHelper.Spacing="10">
<TextBlock Text="商品名称" />
<TextBox
Grid.Column="1"
Width="200"
Margin="10 0" IsReadOnly="True"
Text="{Binding Goods.GoodsName}" />
<TextBlock Text="商品价格" Grid.Row="1" />
<TextBox
Grid.Row="1"
Grid.Column="1"
Width="200"
Margin="10 0"
Text="{Binding Goods.GoodsPrice, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Grid.Row="2" Text="商品数量" />
<TextBox
Grid.Row="2"
Grid.Column="1"
Width="200"
Margin="10 0"
Text="{Binding Goods.GoodsNum,UpdateSourceTrigger=PropertyChanged}" />
<Button Grid.Row="3"
Grid.ColumnSpan="2"
Command="{Binding EditCommand}"
Content="保存" />
</Grid>
</UserControl>
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
