Xamarin表单/棱镜自定义弹出窗口 [英] Xamarin Forms/Prism Custom Popup

查看:446
本文介绍了Xamarin表单/棱镜自定义弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Xamarin Forms中创建可与Prism导航配合使用的自定义对话框/弹出窗口?

How can I create a custom dialog/popup in Xamarin Forms, that works with Prism's navigation?

Prism支持一个很好的IPageDialogService,但不允许自定义该对话框的内容.

Prism supports an IPageDialogService which is great, but doesn't allow customization of the content of that dialog.

我希望有一个简单的确定/取消"弹出窗口,该弹出窗口允许使用各种UI控件(例如,输入字段,单选按钮等).我尝试合并Rg.Plugins.Popup,但它要求您使用其PopupNavigation服务,而我宁愿避免使用其他导航模式.

I'd like to have a simple ok/cancel popup that allows various UI controls (ie, entry fields, radio buttons, etc). I tried incorporating the Rg.Plugins.Popup but it requires you use a their PopupNavigation service, and I'd rather avoid using different navigation patterns.

推荐答案

Prism.Plugin. PageDialogs 使用Popup插件为Prism.Forms提供自定义PageDialogService. Prism.Plugin.Popups.Unity 提供了对INavigationService的扩展,以允许弹出页面的棱镜友好导航.每个Prism.Forms支持的容器都有一个包装.

Prism.Plugin.PageDialogs provides a custom PageDialogService for Prism.Forms using the Popup plugin. Prism.Plugin.Popups.Unity provides a extensions to INavigationService to allow Prism friendly navigation for Popup Pages. There is a package for each of the Prism.Forms supported containers.

两者目前都是预发布版本,但希望它们能帮助您解决问题.

Both are currently pre-release, but hopefully they help solve your problem.

这篇关于Xamarin表单/棱镜自定义弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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