如何从Listbox中删除内容(消息)?

时间:2015-04-14 13:18:32

标签: c# wpf listbox treeviewitem

我有以这种形式使用Listboxitems的Listbox:

<ListBoxItem Height="Auto">
    <StackPanel Orientation="Horizontal">
        <Label Content="Sender"/>
        <Label Content="Subject"/>
        <Label Content="mail@sender.com"/>
        <Label Visibility="Collapsed">Random text from random sender.</Label>
    </StackPanel> 
</ListBoxItem>

当我按下DELETE(name = delete_bt)按钮时,我希望这样做,我将从Listboxitem发送的整个消息应该移动到DELETED MESSAGES文件夹(树视图中的子树):

<TreeViewItem Header="DELETED MESSAGES"/>

此外,当我移动到该文件夹​​时,我想这样做,我将能够使用DELETE按钮永久删除邮件。

0 个答案:

没有答案
相关问题