Page 1 of 1
View3D in xaml
Posted: Wed Mar 06, 2013 9:41 am
by 15664627
Hello Support Team,
is there a way to set or modify the View3D property in xaml??
Thanks a lot.
Best regards
Simo
Re: View3D in xaml
Posted: Wed Mar 06, 2013 4:11 pm
by 10050769
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:
Is it you want?
Thanks,
Re: View3D in xaml
Posted: Wed Mar 06, 2013 4:19 pm
by 15664627
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
Re: View3D in xaml
Posted: Thu Mar 07, 2013 8:30 am
by 10050769
Hello Simo,
Many thanks for your clarification and information, it sure helps other users.
Thank you,