摘要: 在《在WindowsPhone8中生成基于MVVM Light的LongListSelector导航事件》一文中,我们对LongListSelector绑定了相应命令、消息和数据,在运行程序时,发现一个问题:我们的命令绑定在了LongListSelector中,用来处理导航事件,这在一般情况下,即绑定的控件不为LongListSelector时,是非常完美的。但是对于LongListSelector,它还存在一个GroupHeader,即A\B\C\D.....这个标题,好,根据上个APP点击这些标题,杯具,bug:1.如果进入APP直接点击LongListSelector的GroupHead 阅读全文
posted @ 2013-05-20 22:24 valentine is me 阅读(318) 评论(0) 推荐(1)
摘要: 继续《在WindowsPhone8中生成基于MVVM Light的LongListSelector命令绑定》,在上一例中,获得了LongListSelector的值,下面利用MVVM Light的消息机制处理导航事件。1.创建一个类,命名为NavigationTo,可访问性改为public,包含两个属性:public class NavigationTo { public string PageName { get; set; } public string PageParameter { get; set; } }属性PageName为即将导航至的页面... 阅读全文
posted @ 2013-05-20 11:23 valentine is me 阅读(240) 评论(0) 推荐(1)
摘要: 继续《在WindowsPhone8中生成基于MVVM Light的LongListSelector拼音检索绑定》一文,项目不再引用上一个项目,但功能实现相同,我们已经对数据作了绑定,下面要携带参数传值导航至具体内容页:1.在引用中添加 xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLi 阅读全文
posted @ 2013-05-20 10:19 valentine is me 阅读(312) 评论(0) 推荐(0)