Class Viewport3D
Provides a rendering surface for 3-D visual content.
Inheritance
Namespace: Telerik.Windows.Media.Media3D
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public class Viewport3D : Control, INotifyPropertyChanged, ITreeNode3D
Constructors
Viewport3D()
Initializes a new instance of the Viewport3D class.
Declaration
public Viewport3D()
Fields
CameraProperty
Identifies the Camera dependency property.
Declaration
public static readonly DependencyProperty CameraProperty
Field Value
System.Windows.DependencyProperty
|
ChildrenProperty
Identifies the Children dependency property.
Declaration
public static readonly DependencyProperty ChildrenProperty
Field Value
System.Windows.DependencyProperty
|
ChildrenPropertyKey
Identifies the ChildrenPropertyKey dependency property.
Declaration
public static readonly DependencyPropertyKey ChildrenPropertyKey
Field Value
DependencyPropertyKey
|
Properties
Camera
Gets or sets a camera object that projects the 3-D contents of the Viewport3D to the 2-D surface of the Viewport3D. This is a dependency property.
Declaration
public Camera Camera { get; set; }
Property Value
Camera
|
Children
Gets a collection of the Visual3D children of the Viewport3D. This is a dependency property.
Declaration
public Visual3DCollection Children { get; }
Property Value
Visual3DCollection
|
ForceLightTransform
Indicates whether the light transformation should be forced to run.
Declaration
protected bool ForceLightTransform { get; set; }
Property Value
System.Boolean
|
ForceRunVertexStage
Indicates whether the vertex stage should be forced to run.
Declaration
protected bool ForceRunVertexStage { get; set; }
Property Value
System.Boolean
|
Methods
ArrangeOverride(Size)
Provides the behavior for the "Arrange" pass of Silverlight layout. Classes can override this method to define their own arrange pass behavior.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size
finalSize
The final area within the parent that this object should use to arrange itself and its children. |
Returns
System.Windows.Size
The actual size used. |
FindName(String)
Find object with given name in the visual and logical tree.
Declaration
public object FindName(string name)
Parameters
System.String
name
Name of the object to find. |
Returns
System.Object
Object with given name of null if not found. |
InvalidateScene()
Invalidates the scene. This call forces regeneration of the BSP tree and invokes render.
Declaration
public void InvalidateScene()
MeasureOverride(Size)
Provides the behavior for the "measure" pass of Silverlight layout. Classes can override this method to define their own measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.Size
availableSize
The available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available. |
Returns
System.Windows.Size
The size that this object determines it needs during layout, based on its calculations of child object allotted sizes. |
NotifyPropertyChanged(String)
The PropertyChanged event handler.
Declaration
protected void NotifyPropertyChanged(string propertyName)
Parameters
System.String
propertyName
Property name. |
PropertyChangedHandler(DependencyObject, DependencyPropertyChangedEventArgs)
Viewport3D common property changed callback.
Declaration
protected static void PropertyChangedHandler(DependencyObject source, DependencyPropertyChangedEventArgs eventArgs)
Parameters
System.Windows.DependencyObject
source
Source. |
System.Windows.DependencyPropertyChangedEventArgs
eventArgs
Event Args. |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|