如何在图像控制上应用倾斜效果 [英] how to apply tilt effect on image control

查看:63
本文介绍了如何在图像控制上应用倾斜效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在点击/点击图像上应用倾斜效果.如何应用?

I want to apply tilt effect on click/tap image.how can i apply it ?

我已经有Coding4fun工具套件类"TiltEffect", &在xaml中引用了它.

I have already Coding4fun tool kit class "TiltEffect" & referenced it in xaml.

现在如何在csharp中启用属性.我正在通过循环动态生成图像

now how can i enable property in csharp.I am generating image dynamically through looping

推荐答案

我想将相同的内容应用于TextBlock,并且已在

I wanted to apply the same thing to TextBlock and I have documented it in a blog post.

它归结为使用启用了倾斜功能的按钮并重新设置样式以删除边框.然后添加图像作为其内容.它会显示为常规图像,但实际上它是一个可倾斜的按钮.

It boils down to using button with tilt enabled and restyling it to remove border. Then you add your image as its content. It will appear as regular image, but in fact it is a tiltable button.

仅当您打算在倾斜后执行某些操作时才建议使用此选项,如果您可以触摸倾斜但不执行其他任何操作的图像,则可以满足用户的期望.您应该做一些事情,要么打开某些网页,要么以更高的分辨率显示它. 倾斜意味着该对象是可操作的.

This is recommended only if you plan to do something after tilting, you will brake user's expectations if you can touch image which tilts, but doesn't do anything else. You should do something, either opening some web page or displaying it in higher resolution. Tilting means that the object is actionable.

欢呼


这篇关于如何在图像控制上应用倾斜效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆