学习008-02-04-04 Enable Split Layout in a List View(在列表视图中启用拆分布局 )

Enable Split Layout in a List View(在列表视图中启用拆分布局 )

This lesson explains how to enable a Split Layout in a List View.
本课介绍如何在列表视图中启用拆分布局。

The Detail View opens when you select an object from the List View. In ASP.NET Core Blazor applications, this Detail View replaces the List View. In Windows Forms applications, XAF renders a new window.
当您从列表视图中选择一个对象时,详细信息视图将打开。在ASP.NETCore Blazor应用程序中,此详细信息视图取代列表视图。在Windows窗体应用程序中,XAF呈现一个新窗口。

The instructions below explain how to show the Detail View of the selected Department object alongside the Department List View.
下面的说明说明了如何在部门列表视图旁边显示所选部门对象的详细信息视图。

Step-by-Step Instructions(分步说明)

1.In the MySolution.Module project, open the Model.DesignedDiffs.xafml file in the Model Editor. Navigate to the Views | MySolution.Module.BusinessObjects | Department | Department_ListView node. Set the MasterDetailMode property of this node to ListViewAndDetailView.
在MySolutions. Module项目中,在Model Editor中打开Model.DesignedDiffs.xafml文件。导航到Views | MySolution.Module.BusinessObjects | Department | Department_ListView节点。将此节点的MasterDetailMode属性设置为ListViewAndDetailView。
在这里插入图片描述

2.Run the application. Open the Department List View and select an object to see the object’s Detail View in the same window:
运行应用程序。打开部门列表视图并选择一个对象以在同一窗口中查看该对象的详细信息视图:

ASP.NET Core Blazor
在这里插入图片描述

Windows Forms
在这里插入图片描述

The Detail View is context-sensitive and its content depends on the selected Department object.
详细信息视图是上下文相关的,其内容取决于所选的部门对象。

Tip
To specify the Detail View that appears alongside the List View, use the MasterDetailView property. To customize the Detail View location, use the Direction and ViewsOrder properties of the _ListView | SplitLayout node.
要指定显示在列表视图旁边的详细视图,请使用MasterDetailView属性。要自定义详细视图位置,请使用_ListView|SplitLayout节点的Direction和ViewsOrder属性。

Next Lesson(下一课)

Make a List View Editable
使列表视图可编辑

  • 13
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

thomastang200912_126

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值