如何给SemanticZoom添加项

wl****zf UID.685940
2015-04-07 发表


原先是这样绑定数据源的,可是在给items添加项之后,并未显示出来
Items= (from item in talkMessage group item by item.Key into newItems select new ItemInGroup1 { Key = newItems.Key, ItemContent = newItems.ToList() }).ToList();
this.itemcollectSource.Source = Items;
inView.ItemsSource = itemcollectSource.View;

标签: 如何

敬告:
为防止不可控的内容风险,本站已关闭新用户注册,新贴的发表及评论;
你现在看到的内容只是互联网用户曾经发表的言论快照,仅用于老用户留存纪念,且仅与科技行业相关,全部内容不代表本站观点及立场;
本站重新开放前已针对包括用户隐私、版权保护、信息安全、国家政策在内的各种互联网法律法规要求,执行了隐患内容的自查、屏蔽和删除;
本站目前所属个人主体,未有任何盈利安排与计划,且与原WFUN.COM所属公司不存在任何关联关系;
如果本帖内容或者相关资源侵犯到您的合法权益,或者您认为存在问题,那么请您务必点此举报或投诉!
全部回复:
vbfool UID.352791
2015-04-07 回复

Items本身没实现集合通知。
Items=new ObservableCollection(from item in talkMessage group item by item.Key into newItems select new ItemInGroup1 { Key = newItems.Key, ItemContent = newItems.ToList() });
再试试看。

不过我估计你的逻辑不是这么干的就是了。

wl****zf UID.685940
2015-04-09 回复

Quote***链接停止解析***
Items本身没实现集合通知。
Items=new ObservableCollection(from item in talkMessage group item by it ...


对啊,我用的是林政的书上的那种方法,***链接停止解析***

wcavell UID.34926
2015-04-10 回复

本帖最后由 wcavell 于 2015-4-10 10:46 编辑

分组要用到CollectionViewSource
[mw_shl_code=xml,true]
<CollectionViewSource x:Key="CollectionViewSource" IsSourceGrouped="True" Source="{Binding Channeles}"/>
<SemanticZoom>
<SemanticZoom.ZoomedInView>
<ListView Margin="0,0,0,10" Name="ListViewChannel" ItemTemplate="{StaticResource ChannelTemplate}"
ItemsSource="{Binding Source={StaticResource CollectionViewSource}}">
<ListView.GroupStyle>
<GroupStyle HidesIfEmpty="True" HeaderTemplate="{StaticResource ChannelHeaderTemplate}"/>
</ListView.GroupStyle>
</ListView>
</SemanticZoom.ZoomedInView>
<SemanticZoom.ZoomedOutView>
<ListView ItemTemplate="{StaticResource JumpTemplate}"
ItemsSource="{Binding Source={StaticResource CollectionViewSource},Path=CollectionGroups}">
</ListView>
</SemanticZoom.ZoomedOutView>
</SemanticZoom>
[/mw_shl_code]

qiqiminmin UID.638527
2015-04-10 回复

本帖最后由 qiqiminmin 于 2015-4-10 12:00 编辑



最好看微软提供的例子,有专门提到怎么使用 sqlite的,数据怎么绑定,例子都是用 observerCollection,

之后更改就是 observerCollection里面的, 哦。。。。 似乎这个问题我回答过一样的

本站使用Golang构建,点击此处申请开源鄂ICP备18029942号-4联系站长投诉/举报