Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
ListView item bounds
posted

In a standard .NET ListView control, there is a property in the ListViewItem object called Bounds. This allows the developer to find out what the bounds are of any particular item. I use it to find the bounds of the last item in the list. I then resize the control dynamically so that all items will be visible with no scrollbars. The control has limited items, so this is fine.  How can I accomplish the same functionality with the UltraListView control?

Parents
  • 69832
    Offline posted

    UltraListViewItem does not expose a Bounds property. It exposes a UIElement property, which in turn exposes a Rect property, which represents the bounds of the item, but is only available when the item is within the viewable area of the control, and is expressed as relative to the viewable area of the control. If you like you can submit a feature request for a Bounds property that returns the absolute position of the item.

Reply Children