Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Convert a PlaneProjection into a MatrixTransform
  2. <Rectangle Fill="Red" Margin="50">
  3.     <Rectangle.Projection>
  4.         <PlaneProjection RotationX="-40"/>
  5.     </Rectangle.Projection>
  6. </Rectangle>
  7.        
  8. var matrix = (myElement.Projection as PlaneProjection).ProjectionMatrix;
  9. var matrixProjection = new Matrix3DProjection { ProjectionMatrix = matrix };