Making ResizableContentControl fit in ListBoxItem width

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 11 years ago by Stephen Starkie
Version: 11.1.0543

I have a ListBox which has datatemplates for the various things it can contain; one of these uses a ResizableContentControl which I have set to resize vertically. I would like it to only fill the width of the list box but can't seem to make it do so


Comments (1)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Stephen,

If I have this code, it's stretching horizontally ok:
    <shared:ResizableContentControl ResizeMode="Vertical">
There's nothing in the ResizableContentControl code that should affect normal measurement. It should be measuring the same as a normal ContentControl, unless you resize it manually of course.

Maybe you can try a ListBox.HorizontalContentAlignment setting of Stretch?

Actipro Software Support

The latest build of this product (v22.1.4) was released 18 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.