H
H
h1_0ne2019-07-14 19:17:57
WPF
h1_0ne, 2019-07-14 19:17:57

How can I set the MaxWidth of a WrapPanel to be equal to the width of the grid it's in?

5d2cf2fd9fa83778362960.pngThe form has a grid that contains a WrapPanel. The initial grid width is automatic. You need to make the maximum width of the WrapPanel the same as the grid, so that when the form is stretched and contracted, the elements on the wrapPanel are transferred or returned to the next / previous line. How to do it? Is it possible only in xaml? If not, how can it be done through binding using the MVVM pattern?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question