WPF创建ios密码按钮 [英] WPF creating ios passcode buttons

查看:70
本文介绍了WPF创建ios密码按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。有可能像这个按钮?我尝试了不同的着色器来为椭圆效果。椭圆位于用户组件中,但背景图像位于窗口上。图像上椭圆的笔划是亮度增加的背景图像。我怎么能产生这种效果?

Hi. is is posible to make something like this buttons? I tried different shaders to make this effect for ellipse. The ellipse is in user-component, but the background image is on window. The stroke of the ellipse on image is background image with increased brightness. How i can make this effect?

推荐答案

这样做的一个简单方法就是创建这种样式的图像。想象一下圆形的图像,应用渐变。



您可以随时更改单击或点击事件上的图像,这样您就可以通过将图像替换为具有<的任何其他图像来更改图像的样式。 code>焦点图片样式。



否则,需要进行大量的径向梯度编码。上面提到的是一种简单的方法。
A simple method of doing this, would be to create images of such styles. Think of an image with Round in it, having a gradient applied to it.

You can always change the image on Click or tap event, so you can change the style of the image by replacing the image with any other image, that has the focus style for your image.

Otherwise, a lot of radial gradient coding would be required. Above mentioned is a simple method.


这篇关于WPF创建ios密码按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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