当前位置: 首页> 健康> 知识 > 学习008-02-04-04 Enable Split Layout in a List View(在列表视图中启用拆分布局 )

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

时间:2025/7/13 21:40:17来源:https://blog.csdn.net/thomastang200912_126/article/details/140667642 浏览次数:0次

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
使列表视图可编辑

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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: