Animate on an X C# NOT XAML Margin Animation Windows 8 -
can explain me doing wrong here? beginner @ c# , not want leave xaml when comes animating image on screen. _sb = new storyboard(); doubleanimation movexanim = new doubleanimation(); movexanim.duration = timespan.frommilliseconds(5000); movexanim.from = 0; movexanim.to = 300; _sb.children.add(movexanim); storyboard.settarget(movexanim, person); storyboard.settargetproperty(movexanim, "(canvas.left)"); _sb.begin(); all examples find xaml. what makes think not work? assume person uielement. is person element contained inside canvas? example below should work code> <canvas> <textblock text="hi" x:name="person" /> </canvas>