WPF中的标签云 [英] Tag cloud in WPF

查看:121
本文介绍了WPF中的标签云的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何创建一个吗?我知道之前曾有人问过这个问题,但没有答案,提供的链接已无济于事.

Anyone knows how to create one? I know this question has been asked before but there was no answer and the provided link was a dead end.

编辑

我找到但无法使其工作的项目是这样的: http://alanle.com/wp-content/uploads/2009/12/WPFTagCloud.zip

The project I found but couldn't make it work is this: http://alanle.com/wp-content/uploads/2009/12/WPFTagCloud.zip

我得到的错误是

  1. 必须为不属于项目的XAML文件指定程序集.将XAML文件添加到项目中后,重新打开它,关闭该文件,然后使用与其关联的项目重新打开它,或修改clr-namespace以包括程序集的名称."
  2. 未找到类型'local:CountToFontSizeConverter'.确认您没有丢失程序集引用,并且所有引用的程序集均已构建."

如果有人可以运行它并且知道如何修复它,那将是很好的.谢谢

If someone can run it and knows how to fix it that would be great. Thanks

推荐答案

看看这篇博客文章.

查看此博客文章中的代码(只需关闭弹出的身份验证框),它看起来是正确的.基本思想是绑定字体大小和文本,并根据出现的次数计算字体大小.

After looking at the code in this blog post (just close the authenticate box that pops up) it looks correct. The basic idea is to bind the font size as well as the text, and calculate the font size based on the number of occurrences.

这篇关于WPF中的标签云的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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