Csharp/C#教程:WindowPhone FlipView System.ArgumentException分享


WindowPhone FlipView System.ArgumentException

我在WindowsPhone应用程序中使用FlipView时遇到问题。 我有一个带有FlipView的页面,它有ItemsSource绑定到ItemsGroup和SelectedItem绑定到CurrentItem。 FlipView的DataTemplate包含附加了属性Html的WebView,该属性Html绑定到CurrentItem的Html。 一切顺利,但应用程序不时与System.ArgumentException崩溃,我不知道什么是错的。

XAML:

                           

C#:

  public class NewsItem { public string Title { get; set; } public string Link { get; set; } public DateTime Published { get; set; } public string Html { get; set; } public string Image { get; set; } } 

错误:

参数不正确。 System.ArgumentException:值不在预期范围内。

我用我的自定义替换了FlipView的默认Templete,其中我删除了2.5点边框边距。 我不知道怎么做,但它确实有效。 也许它与进入边缘区域的指针相关联,因为从边缘滑动时发生了错误。

上述就是C#学习教程:WindowPhone FlipView System.ArgumentException分享的全部内容,如果对大家有所用处且需要了解更多关于C#学习教程,希望大家多多关注—计算机技术网(www.ctvol.com)!

  

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/cdevelopment/1000872.html

(0)
上一篇 2021年12月28日
下一篇 2021年12月28日

精彩推荐