Table of Contents

Class ItemsModel3D

Namespace
HelixToolkit.WinUI.SharpDX
Assembly
HelixToolkit.WinUI.SharpDX.dll

Represents a model that can be used to present a collection of items. supports generating child items by a DataTemplate.

public class ItemsModel3D : CompositeModel3D, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, IDisposable, IVisible, IHitable, ISelectable, IMouse3D
Inheritance
ItemsModel3D
Implements
IWinRTObject
Inherited Members
Extension Methods

Remarks

Use the ItemsSource property to specify the collection to use to generate the content of your ItemsControl. You can set the ItemsSource property to any type that implements IEnumerable. ItemsSource is typically used to display a data collection or to bind an ItemsControl to a collection object.

Constructors

ItemsModel3D()

Initializes a new instance of the GroupElement3D class.

public ItemsModel3D()

Fields

ItemTemplateProperty

The item template property

public static readonly DependencyProperty ItemTemplateProperty

Field Value

DependencyProperty

ItemTemplateSelectorProperty

public static readonly DependencyProperty ItemTemplateSelectorProperty

Field Value

DependencyProperty

ItemsSourceProperty

ItemsSource for binding to collection. Please use ObservableElement3DCollection for observable, otherwise may cause memory leak.

public static readonly DependencyProperty ItemsSourceProperty

Field Value

DependencyProperty

OctreeManagerProperty

Add octree manager to use octree hit test.

public static readonly DependencyProperty OctreeManagerProperty

Field Value

DependencyProperty

Properties

ItemTemplate

Gets or sets the DataTemplate used to display each item.

public DataTemplate? ItemTemplate { get; set; }

Property Value

DataTemplate

The item template.

ItemTemplateSelector

public DataTemplateSelector ItemTemplateSelector { get; set; }

Property Value

DataTemplateSelector

Items

public ItemCollection Items { get; }

Property Value

ItemCollection

ItemsSource

Gets or sets a collection used to generate the content of the ItemsModel3D.

public IEnumerable? ItemsSource { get; set; }

Property Value

IEnumerable

The items source.

OctreeManager

public IOctreeManagerWrapper? OctreeManager { get; set; }

Property Value

IOctreeManagerWrapper

Methods

AttachChildren(IList?)

Attaches the children.

protected void AttachChildren(IList? children)

Parameters

children IList

The children.

Clear()

public virtual void Clear()

DetachChildren(IList?)

Detaches the children.

protected void DetachChildren(IList? children)

Parameters

children IList

The children.

ItemsModel3D_CollectionChanged(object?, NotifyCollectionChangedEventArgs)

protected void ItemsModel3D_CollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)

Parameters

sender object
e NotifyCollectionChangedEventArgs

OnApplyTemplate()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

protected override void OnApplyTemplate()

OnCreateSceneNode()

Called when [create scene node].

protected override SceneNode OnCreateSceneNode()

Returns

SceneNode