English 中文(简体)
名单Box中标语
原标题:Sticky Group Headers in ListBox

我把WPF ListBox捆绑到一组的ICollectionView上。 名单Box与集团头目正确显示,但我要为此增加更多行为。

我希望团体负责人坚持顶点,直到下一个集团负责人把它推倒出来。 与此类似,IPhone人联系名单如何操作,负责人A、B、C等在下几封信类替换之前,一直到顶。

Illustration

我认为,这将是一个受欢迎的特点,但我无法找到一个在线的例子。

问题回答

很老的问题,但这里的问题是,我如何满足你的要求(在计生联中,用“标准小组负责人”来看待清单Box/List观点)。

  1. ListView already provides this feature. Check if your ControlTemplate is properly written.

如果你使用清单Box,

  1. Get the adorned layer of the ListBox.
  2. Show the group title in this adorned layer based on scroll bar position.

您可以在这里描述的是<代码>Accordion控制。

“entergraph

请查看WPFToolkit的同样情况:。 http://wpf.codeplex.com/releases/view/40535





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签