日期:2014-05-20  浏览次数:20913 次

WPF怎么实现QQ那个分组列表
如题:
QQ分组列表左边没图标
//样式
 分组1
 分组2
//样式
点击分组下面会显示组员信息,左边没图片全文字信息

------解决方案--------------------
http://www.cnblogs.com/nankezhishi/archive/2010/02/12/1667889.html
------解决方案--------------------

------解决方案--------------------
<ListBox Name="listBox1" HorizontalContentAlignment="Stretch">
<Expander Header="分组1" HorizontalContentAlignment="Stretch">
<ListBox>
<ListBoxItem>
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<TextBlock>张三</TextBlock>
<TextBlock Grid.Row="1">心情不好</TextBlock>
</Grid>
</ListBoxItem>
<ListBoxItem>c</ListBoxItem>
<ListBoxItem>b</ListBoxItem>
</ListBox>
</Expander>
<Expander Header="分组2" HorizontalContentAlignment="Stretch">
<ListBox>
<ListBoxItem>a</ListBoxItem>
<ListBoxItem>c</ListBoxItem>
<ListBoxItem>b</ListBoxItem>
</ListBox>
</Expander>
<Expander Header="分组3" HorizontalContentAlignment="Stretch">
<ListBox>
<ListBoxItem>a</ListBoxItem>
<ListBoxItem>c</ListBoxItem>
<ListBoxItem>b</ListBoxItem>
</ListBox>
</Expander>
</ListBox>
------解决方案--------------------
探讨
<ListBox Name="listBox1" HorizontalContentAlignment="Stretch">
<Expander Header="分组1" HorizontalContentAlignment="Stretch">
<ListBox>
<ListBoxItem>
<Grid>
<Grid.RowDefinitions>
<RowD……

------解决方案--------------------
ImageList、Button和ListView。Button控件显示好友分组,点击之后显示相应好友分组的信息;ImageList控件用于存放好友头像
http://www.codeproject.com/KB/WPF/WPFOutlookBar.aspx