View3D in xaml

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Simo
Newbie
Newbie
Posts: 5
Joined: Thu Jan 10, 2013 12:00 am

View3D in xaml

Post by Simo » Wed Mar 06, 2013 9:41 am

Hello Support Team,

is there a way to set or modify the View3D property in xaml??
Thanks a lot.

Best regards
Simo

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: View3D in xaml

Post by Sandra » Wed Mar 06, 2013 4:11 pm

Hello Simo,

If you want change view3D in xaml projects, you can do it to run time, the same way you do it in winforms:

Code: Select all

tChart1.Aspect.view3D=false; 
Is it you want?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Simo
Newbie
Newbie
Posts: 5
Joined: Thu Jan 10, 2013 12:00 am

Re: View3D in xaml

Post by Simo » Wed Mar 06, 2013 4:19 pm

Hi Sandra,

this is the way you can resolve it in xaml-codes not in the code-behind:

1. You have to instance the Aspect Class as a resource:

<UserControl.Resources>
<my:Aspect x:Key="ChartAspect" View3D="False"/>

<wpf2:Panel x:Key="ChartPanel" Transparent="True" BorderRound="0">

</wpf2:Panel>

</UserControl.Resources>

2. Than you can set the Aspact Class to the Aspect-Property of the Chart this way:

<Grid>
<chart:TChart
Name="MyChart"
Aspect="{StaticResource ChartAspect}"
Panel="{StaticResource ChartPanel}"
Focusable="True">
</chart:TChart>
</Grid>

Maybe this could help another developer!

Thanks
Simo

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: View3D in xaml

Post by Sandra » Thu Mar 07, 2013 8:30 am

Hello Simo,
Many thanks for your clarification and information, it sure helps other users. :D


Thank you,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply