ListView.LayoutCreated 事件

定义

LayoutTemplate 控件中创建 ListView 模板后发生。Occurs when the LayoutTemplate template is created in a ListView control.

public:
 event EventHandler ^ LayoutCreated;
public event EventHandler LayoutCreated;
member this.LayoutCreated : EventHandler 
Public Custom Event LayoutCreated As EventHandler 

事件类型

EventHandler

注解

ListView 呈现控件之前, LayoutTemplate 必须创建模板以用作控件的根容器。Before the ListView control can be rendered, the LayoutTemplate template must be created to serve as the root container for the control. LayoutCreated当创建控件中的布局模板时,会引发事件 ListViewThe LayoutCreated event is raised when the layout template in the ListView control is created. 这使您可以在每次发生此事件时执行自定义例程。This enables you to perform a custom routine whenever this event occurs.

有关如何处理事件的详细信息,请参阅 处理和引发事件For more information about how to handle events, see Handling and Raising Events.

适用于

另请参阅