It has been a week since I submitted this question to the Infragistics support and have had no response. Maybe someone on the forums has some ideas in this area. The question incident number is XCh15.
I have these questions:
1 - Does the Infra XamChart use the WPF 3D classes or does it implement the 3D look and feel with it's own classes?
2 - If it does use the WPF 3D classes, then how can I get the ViewPort3D instance which is housing the XamChart instance?
XamChart uses WPF 3D engine and this example shows how ViewPort3D from the chart could be used to add additional custom GeometryModel3D to the chart. The chart’s View3D property has to be set to "True"!
GoranS
C#:
{
// Insert code required on object creation below this point.
}
Canvas pane3D = scenePane.Children[0] as Canvas;
Visual3DCollection v3d = viewPort3D.Children;
Model3DGroup modelGroup = model3D.Content as Model3DGroup;
modelGroup.Children.Add(model);
XAML:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:igCA="http://infragistics.com/Chart"
x:Class="UntitledProject4.Window1"
x:Name="Window"
Title="Window1"
<Window.Resources>
<GeometryModel3D.Geometry>
<MeshGeometry3D
Positions="0,0.1,0 0.1,-0.1,0.1 -0.1,-0.1,0.1 0.1,-0.1,0.1 -0.1,-0.1,-0.1"
Normals="0,1,0 -1,0,1 1,0,1 -1,0,-1 1,0,-1"
</GeometryModel3D.Geometry>
<DiffuseMaterial Brush="Aqua" />
<GeometryModel3D.BackMaterial>
</GeometryModel3D.BackMaterial>
<Grid x:Name="LayoutRoot">
<igCA:XamChart Name="Chart1" View3D="True" >
<igCA:Scene>
<igCA:GridArea Background="Red" RenderingMode="Performance"/>
</igCA:Scene>
<igCA:XamChart.Series>
<igCA:Series.DataPoints>
<igCA:DataPoint Value="9"/>
<igCA:DataPoint Value="5"/>
<igCA:DataPoint Value="7"/>
</igCA:Series.DataPoints>
</igCA:XamChart.Series>
</Window>