Share via


XamlType.LookupContentWrappers 方法

定义

获取 XamlType 值的列表,这些值表示此 XamlType 的内容包装。

protected:
 virtual System::Collections::Generic::IList<System::Xaml::XamlType ^> ^ LookupContentWrappers();
protected virtual System.Collections.Generic.IList<System.Xaml.XamlType> LookupContentWrappers ();
abstract member LookupContentWrappers : unit -> System.Collections.Generic.IList<System.Xaml.XamlType>
override this.LookupContentWrappers : unit -> System.Collections.Generic.IList<System.Xaml.XamlType>
Protected Overridable Function LookupContentWrappers () As IList(Of XamlType)

返回

XamlType 值的列表,这些值表示此 XamlType 的内容包装。

注解

当该集合中使用的类型与类型系统不连续时,内容包装器是表示内容集合类型的类。 内容包装器的集合项类型应以某种方式限制,超出 Object 或等效于中性对象。 但是,此限制仅由使用该类型的属性的设计或用途强制执行,而不是由类型系统强制执行。 一个类型上可以存在多个内容包装器。

有关 WPF XAML 实现中的示例类和方案,请参阅 InlineCollection

适用于