Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Is it possible to embed a XamChart into a ViewPort3D object?

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?



  • 1912

    Your incident was logged on 3/5 and a response was sent to you on 3/11.
    The response was that the support rep was forwarding your query to a developer for help.
    Respond to the last e-mail you recived and ask the support rep for an update.
    If you didn't get the response sent on 3/11 please recontact support and they can resend the response.
    Contact direct if you continue to not recive e-mails from the support personnel.

  • 28496
    Offline posted

    did you ever get an answer from support on this subject?

  • 739


    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"!



    public Window1()




    // Insert code required on object creation below this point.

    Btn.Click += new RoutedEventHandler(Btn_Click);



    void Btn_Click(object sender, RoutedEventArgs e)


    Canvas scenePane = this.Chart1.Scene.Content as Canvas;

    Canvas pane3D = scenePane.Children[0] as Canvas;

    Viewport3D viewPort3D = pane3D.Children[0] as Viewport3D;

    Visual3DCollection v3d = viewPort3D.Children;

    ModelVisual3D model3D = v3d[0] as ModelVisual3D;

    Model3DGroup modelGroup = model3D.Content as Model3DGroup;

    GeometryModel3D model = this.FindResource("ww") as GeometryModel3D;











    Width="640" Height="480">


    <GeometryModel3D x:Key="ww">



    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"


    TriangleIndices="0,2,1 0,3,1 0,3,4 0,2,4" />



    <DiffuseMaterial Brush="Aqua" />



    <DiffuseMaterial Brush="LightBlue"/>





    <Grid x:Name="LayoutRoot">

    <Button Name="Btn" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Width="155" Height="42" Content="Button"/>

    <igCA:XamChart Name="Chart1" View3D="True" >




    <igCA:GridArea Background="Red" RenderingMode="Performance"/>





    <igCA:Series ChartType="Column">


    <igCA:DataPoint Value="3"/>

    <igCA:DataPoint Value="9"/>

    <igCA:DataPoint Value="8"/>

    <igCA:DataPoint Value="5"/>

    <igCA:DataPoint Value="2"/>

    <igCA:DataPoint Value="7"/>

    <igCA:DataPoint Value="4"/>