MessageDialog for Windows Phone 8.1 XAML应用程序中的错误? [英] Bug in MessageDialog for Windows Phone 8.1 XAML apps?

查看:84
本文介绍了MessageDialog for Windows Phone 8.1 XAML应用程序中的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据文档( http ://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.aspx),一个MessageDialog可以获得
最多三个命令,这个工作原理在Windows应用商店应用上。

According to the documentation (http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.aspx), a MessageDialog can take up to three commands, and this works well on Windows Store apps.

但是,在Windows Phone通用应用程序(即XAML)上,对带有三个命令的MessageDialog的任何调用都会导致System.ArgumentException并显示以下消息:'Value does不在预期的范围内。'

However, on a Windows Phone Universal App (i.e. XAML), any call to MessageDialog with three commands results in a System.ArgumentException with this message: 'Value does not fall within the expected range.'

它似乎不是命令的长度问题;它似乎只是手机上MessageDialog的限制,或者是一个bug。目前尚不清楚文档是否出错(即它应该在Windows Phone中指定限制)或
MessageDialog是否存在问题。

It doesn't appear to be the length of the commands that is the problem; it just seems to be a limitation of MessageDialog on the phone, or a bug. It isn't clear if the documentation is in error (i.e. it should specify a limitation in Windows Phone) or if MessageDialog has the problem.

推荐答案

嘿philip

Hey philip

上面的链接不起作用,是的,在手机应用程序中,它最多只需要2个命令。可能是没有预料到的。由于长度问题,电话中的命令只有2个。

The above Link doesn't work and yeah in phone app it can take up to only 2 commands. May be expected no. of command in phone is only 2 due to the length issues.


这篇关于MessageDialog for Windows Phone 8.1 XAML应用程序中的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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