Class Control3D<TControl>
This class represents a base class for 3D control implementations.
Inheritance
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public class Control3D<TControl> : UIElement3D, IControl3D, ILogicalItem where TControl : IModelControl3D, new()
Type Parameters
TControl
The type of the model control. |
Constructors
Control3D()
Fields
ControlContainerProperty
Identifies the ControlContainer attached dependency property.
Declaration
public static readonly DependencyProperty ControlContainerProperty
Field Value
System.Windows.DependencyProperty
|
MaterialProperty
Identifies the System.Windows.Media.Media3D.Material attached dependency property.
Declaration
public static readonly DependencyProperty MaterialProperty
Field Value
System.Windows.DependencyProperty
|
Properties
BeginTime
Gets the begin time of the animation.
Declaration
public virtual TimeSpan BeginTime { get; }
Property Value
System.TimeSpan
|
Control
Gets the underlying 2D control associated with the current 3D control.
Declaration
public UIElement Control { get; }
Property Value
System.Windows.UIElement
|
Implements
ControlContainer
Gets or sets the controls container.
Declaration
public Panel ControlContainer { get; set; }
Property Value
System.Windows.Controls.Panel
|
ModelControl
Gets the model control.
Declaration
public virtual IModelControl3D ModelControl { get; }
Property Value
IModelControl3D
|
ModelElement
Gets the model element in the 3D space.
Declaration
public virtual UIElement3D ModelElement { get; }
Property Value
System.Windows.UIElement3D
|
MouseEnterStoryboard
Gets the storyboard associated with the mouse enter event.
Declaration
protected BeginStoryboard MouseEnterStoryboard { get; }
Property Value
System.Windows.Media.Animation.BeginStoryboard
|
MouseLeaveStoryboard
Gets the storyboard associated with the mouse leave event.
Declaration
protected BeginStoryboard MouseLeaveStoryboard { get; }
Property Value
System.Windows.Media.Animation.BeginStoryboard
The mouse leave storyboard. |
Visual3DChildrenCount
Gets the number of child elements for the System.Windows.Media.Media3D.Visual3D object.
Declaration
protected override int Visual3DChildrenCount { get; }
Property Value
System.Int32
The number of child elements. |
Methods
ChildItemAdded(UIElement3D, Int32)
Invoked whenever a child element has been added to the 3D control.
Declaration
public virtual void ChildItemAdded(UIElement3D child, int itemIndex)
Parameters
System.Windows.UIElement3D
child
The child element being added. |
System.Int32
itemIndex
Index of the item. |
Implements
ChildItemRemoved(UIElement3D, Int32)
Invoked whenever a child element has been removed from the 3D control.
Declaration
public virtual void ChildItemRemoved(UIElement3D child, int itemIndex)
Parameters
System.Windows.UIElement3D
child
The child element being removed. |
System.Int32
itemIndex
Index of the item. |
Implements
ClearContainer()
Invoked whenever the control container should be cleared.
Declaration
public virtual void ClearContainer()
Implements
CreateControl()
Creates the model control for the current 3D control.
Declaration
protected virtual TControl CreateControl()
Returns
TControl
|
FindStoryboard(Control, DependencyProperty, Object)
Retrieves a storyboard.
Declaration
protected static BeginStoryboard FindStoryboard(Control control, DependencyProperty dependencyProperty, object propertyValue)
Parameters
System.Windows.Controls.Control
control
|
System.Windows.DependencyProperty
dependencyProperty
|
System.Object
propertyValue
|
Returns
System.Windows.Media.Animation.BeginStoryboard
|
GetVisual3DChild(Int32)
Returns the specified System.Windows.Media.Media3D.Visual3D in the parent System.Windows.Media.Media3D.Visual3DCollection.
Declaration
protected override Visual3D GetVisual3DChild(int index)
Parameters
System.Int32
index
The index of the 3-D visual object in the collection. |
Returns
System.Windows.Media.Media3D.Visual3D
The child in the collection at the specified |
Exceptions
System.ArgumentOutOfRangeException
The |
InitializeModelControl(IModelControl3D)
Initializes the model control of the current 3D control.
Declaration
public void InitializeModelControl(IModelControl3D modelControl)
Parameters
IModelControl3D
modelControl
The model control. |
Implements
OnApplyTemplate(Control)
When overridden in a derived class, is invoked whenever the Template2DApplied event is raised.
Declaration
public virtual void OnApplyTemplate(Control control)
Parameters
System.Windows.Controls.Control
control
|
OnControlContainerChanged()
Invoked whenever the control container has been changed.
Declaration
public virtual void OnControlContainerChanged()
Implements
OnModelControlAttached()
Invoked whenever a model control has been attached to the 3D control.
Declaration
protected virtual void OnModelControlAttached()
OnModelControlCreated()
Invoked whenever a model control has been created for the 3D control.
Declaration
protected virtual void OnModelControlCreated()
OnMouseEnter(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseEnter attached event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs
e
The System.Windows.Input.MouseEventArgs that contains the event data. |
OnMouseLeave(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs
e
The System.Windows.Input.MouseEventArgs that contains the event data. |
OnVisualParentChanged(DependencyObject)
Invoked when the parent element of this System.Windows.UIElement3D reports a change to its underlying visual parent.
Declaration
protected override void OnVisualParentChanged(DependencyObject oldParent)
Parameters
System.Windows.DependencyObject
oldParent
The previous parent. This may be provided as null if the System.Windows.DependencyObject did not have a parent element previously. |
RegisterNames()
Provides an accessor that simplifies access to the NameScope registration method.
Declaration
protected void RegisterNames()