c# - WPToolkit: TiltEffect Doesn't Seem to be Affecting Image -
i have image:
<image height="100" name="imageplay" stretch="uniformtofill" verticalalignment="center" width="100" toolkit:tilteffect.istiltenabled="true" source="/music%20player%20pro;component/images/play.white.png" margin="20,0,0,0" tap="imageplay_tap" />
which doesn't seem show sign of toolkit:tilteffect? i've tried setting larger size see if effect minute see, still nothing seems happen?
does know why is? , can fix it?
image control doesn't support tilt effect. can put other tiltable controls such stackpanel, grid, border , on. instance putting stackpanel.
<stackpanel toolkit:tilteffect.istiltenabled="true"> <image height="100" name="imageplay" stretch="uniformtofill" verticalalignment="center" width="100" toolkit:tilteffect.istiltenabled="true" source="/music%20player%20pro;component/images/play.white.png" margin="20,0,0,0" tap="imageplay_tap" /> </stackpanel>
by default stackpanel not tiltable , must add stackpanel type tiltableitems in page constructor.
public mainpage() { initializecomponent(); tilteffect.tiltableitems.add(typeof(stackpanel)); }
Comments
Post a Comment