{"id":5189,"date":"2014-03-30T19:32:47","date_gmt":"2014-03-30T19:32:47","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/wpf-grid-row-height-auto-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:32:47","modified_gmt":"2014-03-30T19:32:47","slug":"wpf-grid-row-height-auto-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/wpf-grid-row-height-auto-collection-of-common-programming-errors\/","title":{"rendered":"WPF Grid Row Height Auto-Collection of common programming errors"},"content":{"rendered":"<p>This seems close to some other questions I&#8217;ve seen out here, but not close enough&#8230;<\/p>\n<p>I have a grid with three rows. The first row holds a custom grid that I want to have as much space as possible. I set its Height to &#8220;*&#8221;. The second row is a row of buttons; it is &#8220;Auto&#8221;. The third row is a user control that contains another custom grid that has an unpredictable number of rows (none at design-time, filled in at run-time).<\/p>\n<p>If I set the third row to &#8220;Auto&#8221;, it doesn&#8217;t get any space at all. I need to understand what I have to do after I load the third-row&#8217;s grid to make it then figure out what &#8220;Auto&#8221; should be. Or, if &#8220;Auto&#8221; doesn&#8217;t apply, how else do I get the third row to take up Just Enough space?<\/p>\n<p>Does my custom grid have to fire something like a resized event after it is loaded?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This seems close to some other questions I&#8217;ve seen out here, but not close enough&#8230; I have a grid with three rows. The first row holds a custom grid that I want to have as much space as possible. I set its Height to &#8220;*&#8221;. The second row is a row of buttons; it is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5189","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5189"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5189\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}