【发布时间】:2022-11-19 17:36:37
【问题描述】:
在打开的对话框中执行保存命令时,父 index.view 不会更新。对于 SaveAndClose 命令,一切都很好。在产品对象上的 https://github.com/alex-kukhtin/A2v10.Web.Sample.git 进行了测试。平台A2v10,不幸的是我还不能标记。
<Dialog xmlns="clr-namespace:A2v10.Xaml;assembly=A2v10.Xaml"
Title="{Bind Product.Id, Format='@[Product] [{0}]'}">
<Dialog.Buttons>
<Button Content="@[SaveAndClose]" Command="{BindCmd SaveAndClose, ValidRequired=True}"/>
<Button Content="@[Save]" Command="{BindCmd Save, ValidRequired=True}"/>
<Button Content="@[Cancel]" Command="{BindCmd Close}"/>
</Dialog.Buttons>
<TabPanel>
<Tab Header="@[General]">
<Grid>
<TextBox Label="@[Name]" Value="{Bind Product.Name}"/>
<TextBox Label="@[BarCode]" Value="{Bind Product.BarCode}" Width="20rem"/>
<TextBox Label="@[Article]" Value="{Bind Product.Article}" Width="20rem"/>
<TextBox Label="@[Memo]" Value="{Bind Product.Memo}" Multiline="True" Rows="3"/>
</Grid>
</Tab>
<Tab Header="@[Images]" Padding="1rem">
<Image Source="{Bind Product.Picture}" Limit="100"
Base="/catalog/product" Height="18rem"/>
</Tab>
</TabPanel>
</Dialog>
PS:由Edit命令调用
I try: executing the Save command in an open dialog
I expecting: The parent index.view is update
【问题讨论】:
标签: typescript xaml