Basic Methods

ComponentOne Cube for WPF includes several methods that allow you to set interaction and customize the control. Some of the more important methods are listed below.

The following methods let you customize the C1Cube control:

 

Method

Description

GetFace

Gets the value of the Face attached property for the specified element.

OnApplyTemplate

Loads the relevant control template so that its parts can be referenced.

Rotate

Rotates the cube. See Cube Rotation for more information and Rotating the Cube for an example.

RotateTo

Smoothly rotates the cube to a specified position. Rotates the cube. See Cube Rotation for more information and Rotating the Cube for an example.

SetFace

Sets the value of the Face attached property for the specified element. See Adding Items to a Cube for an example.

ShowFace

Smoothly rotates the cube so that a face faces forward. See Showing a Cube Face for an example.

ShowItem

Smoothly rotates the cube so that the face an item is in faces forward.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.