创建模仿Outlook邮件文件夹控件的自定义控件 [英] Creating a custom control that mimics the Outlook Mail Folders control

查看:70
本文介绍了创建模仿Outlook邮件文件夹控件的自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个模仿Outlook Mail Folders控件的WPF / Silverlight控件。这可以在Blend中完成,还是过于雄心勃勃? (如果已经有这个的开源版本,那就太棒了。)

I would like to create a WPF/Silverlight control that mimics the Outlook Mail Folders control. Is this something that can be done in Blend, or is it overly ambitious? (If there is an open source version of this already, that would be great.)

推荐答案

阅读List / Detail模式数据绑定部分中的帮助文件,你应该知道如何实现它。

read the help file in section List/Detail mode databinding, you should get the idea how to implement it.

简而言之,绘制一个列表框和一个网格:

In brief, draw one list box and a grid:

1。在列表模式下,将电子邮件标题拖放到列表框中,这会将列表框数据绑定到标题

1. In list mode, drag/drop email titles to the listbox, which would databind the listbox to titles

2。切换到详细模式,将电子邮件正文拖放到网格,这将创建一个文本块并将文本数据绑定到列表框的选定项目

2. switch to detail mode, drag/drop email body to the grid, which would create a textblock and databind the text to the selected item of the list box


这篇关于创建模仿Outlook邮件文件夹控件的自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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