How to call storyboard.TargetName from Xaml to C# -
i want rotate 3d through xaml having code
<window.triggers> <eventtrigger routedevent="window.loaded"> <beginstoryboard> <storyboard> <doubleanimation from="0" to="360" duration="00:00:10" storyboard.targetname="angle" storyboard.targetproperty="angle" repeatbehavior="forever"/> </storyboard> </beginstoryboard> </eventtrigger> </window.triggers>
but when try run code project stops running giving me error:
how can add "angle" class xplorermainwindow()? , should put it. in constructor, somewhere in class, in function open file, or have create new function?
this "angle"
<model3dgroup.transform> <rotatetransform3d centerx= "0" centery = "0" centerz="0"> <rotatetranform3d.rotation> <axisanglerotation3d x:name="angle" axis="-1, -1, -1" angle="70"/> </rotatetransform3d.rotation> </rotationtransform3d> </model3dgroup.transform>
and got code here ebook have downloaded. on page 87 of pdf , page 1099 of book https://drive.google.com/file/d/0b3nndckqbkkbbtjvzw9trxzmeta/view?usp=sharing
Comments
Post a Comment