模仿Outlook地址卡视图 [英] Mimick Outlook Address Cards View

查看:84
本文介绍了模仿Outlook地址卡视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设计一个应用程序,它会在类似于屏幕的公告板上显示可变大小的项目。我可以比较的最接近的事情是,如果你进入Outlook 2007,请转到"联系人"。并选择"地址卡"视图。基本上我需要显示不同大小的"地址卡"。在可以最大化以利用大分辨率监视器的表单上。有没有一种简单的方法可以使用VS 2008完成此操作(无需从头开始编写控件)?

解决方案

因为你发布了WPF设计师论坛,我假设您正在使用WPF或Silverlight作为您的用户界面。

如果您愿意,假设您的数据是可绑定的,那么只需创建一个数据就可以相对轻松地实现这种效果。使用WrapPanel的DataTemplate

http:// msdn .microsoft.com / zh-CN / library / system.windows.controls.wrappanel.aspx

这是一篇很好的文章来阅读关于数据模板的主题
http://msdn.microsoft.com/en-us/library/ms742521.aspx


马克


I want to design an application that will display variable-size items on a bulletin-board like screen.  The closest thing I can compare it to is if you go into Outlook 2007, go to "Contacts" and select the "Address Cards" view.  Basically I need to show varying size "address cards" on a form that can be maximized to take advantage of a large resolution monitor.  Is there an easy way to accomplish this using VS 2008 (w/o having to write the control from the ground up)?

解决方案

Since you've posted on the WPF designer forum, I'll assume that you're using WPF or Silverlight for your UI.

If you are, assuming your data is bindable it's relatively easy to achieve the sort of effect simply by creating a DataTemplate that uses a WrapPanel

http://msdn.microsoft.com/en-us/library/system.windows.controls.wrappanel.aspx

This is a good article to read on the topic of datatemplating
http://msdn.microsoft.com/en-us/library/ms742521.aspx


Mark


这篇关于模仿Outlook地址卡视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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