c# - 我可以在平台 WPF 中使用 Xam.Plugin.Forms.ImageCircle
问题描述
我是新手,所以我开始学习如何在我的 Xamarin 项目中应用插件名称 Xam.Plugin.Forms.ImageCircle。我添加了平台 WPF 而不是 UWP,并且在我安装了上面的插件之后,我无法在文件 App.xaml.cs 中调用 ImageCircleRenderer.Init()。所以我想知道我是否可以使用这个插件以及如何配置它以防在 WPF 中使用这个插件。谢谢
解决方案
我已经检查了 wpf 上的包,它不起作用。
如果你想在 wpf 中使用圆形图像,你可以试试下面的代码。
<Ellipse Width="250" Height="250">
<Ellipse.Fill>
<ImageBrush ImageSource="http://upload.wikimedia.org/wikipedia/commons/5/55/Tamarin_portrait.JPG" />
</Ellipse.Fill>
</Ellipse>
推荐阅读
- r - 根据案例更改数据框中的值
- flutter - 无法无条件访问属性“isEmpty”,因为接收者可以为“null”
- python - 在python中检测给定ECG数据中的PQRST峰
- javascript - 如何在 vue.js 中的两个组件之间切换?
- python - 如何转换使用多个图像资源创建单个可执行文件的 tkinter 脚本
- php - 使用 Omnipay 重定向到条带结帐页面
- javascript - 重定向路由不会重定向到reactjs中的指定路由
- python - 我正在学习使用 DNN 和 python 进行手写数字识别项目。我收到未定义 df_train Y 的错误?
- angular - 如何在其他组件中重用为mat datepicker编写的验证方法
- applescript - 我可以从 applescript 在后台运行终端吗