Pls see screenshots, what I would like is for the pie chart just to resize to fit into the window. I currently have a piechart sitting inside a stack panel sitting inside a DockManager Content pane.
I have View3d=Tue plus the following transform
<Chart:XamChart.Transform3D> <Transform3DGroup> <ScaleTransform3D ScaleX="1.2" ScaleY="1.2" ScaleZ="1.2"/> <RotateTransform3D> <RotateTransform3D.Rotation> <AxisAngleRotation3D Angle="40" Axis="-0.961,0.27,0.06"/> </RotateTransform3D.Rotation> </RotateTransform3D> </Transform3DGroup> </Chart:XamChart.Transform3D>
I have tried playing around with the Scene/Margin types but with no luck
Can anyone help me out? thanks
Hello Chris,
Thank you for your post. I have been looking through it and I successfully reproduce your behavior. One possible solution for you is to replace the StackPanel with Grid, because the StackPanel can only resize its elements vertically or horizontally depending on the set orientation. I attached a screenshot to understand better.
If you have any further questions on this matter do not hesitate to ask.
thanks, I guess that worked, in the sense that it's always in view + centered - how can I now fix the sizing?
Hello again,
I have been looking through your post, but without a sample I am not sure what you exactly mean by “if that content pane starts off small”. I will be glad if you could provide me with an isolated sample project, so I can think of a possible solution for you.
I am looking forward to see hearing from you.
It's difficult to provide an example, but I will demo via screenshots.
The pie chart is bound to some search results, so how the pie chart behaves is dependent on the size of it's parent content pane before the search results are loaded.
So if the dock manager is initially like this
then the pie chart will always look like this:
whereas if it starts like this:
the pie chart resizes properly
I have been looking through your screenshots, but it will be much easier if I have a sample, so I attached a sample project with xamDockManager and xamChart in it. I will be glad if you modify it to reproduce your behalf and send it back to me. By doing this, I will be able to investigate your issue further.
Think that solution is missing the LibraryBusinessLogic file
Thanks
Chris
I am sorry about that. I reatached the sample project in my previous post.
Unfortunately not
This often happens when using winrar or winzip to extract a 7zip archive. Please double check if you can get the files using 7zip.
Looking forward to hearing from you.
This file seems to be corrupt.