<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Elastic Objects in WrapPanel</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : MarkupLabel Control : Elastic Objects in WrapPanel]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 08:52:04 +0000</pubDate>
  <lastBuildDate>Wed, 24 Nov 2010 18:16:38 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17599</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Elastic Objects in WrapPanel :   A more basic version of what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17599&amp;PID=61537&amp;title=elastic-objects-in-wrappanel#61537</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17599<br /><strong>Posted:</strong> 24 November 2010 at 6:16pm<br /><br />A more basic version of what I am looking for:<br><br>Here's what I get right now when I put objects in a WrapPanel:<br><br><img src="uploads/2676/wrap_current.jpg" height="431" width="692" border="0" /><br><br>Since the MinWidth attribute of the red box is 150, the blue and green boxes get wrapped to the next line. But because I haven't defined a Width for the red box, I would like it to actually fill the remaining space in the panel, so this:<br><br><img src="uploads/2676/wrap_elastic2.jpg" height="226" width="253" border="0" /><br><br>Is there any way to accomplish this? <br><br>Thanks again.<br><br><br>Here's the XAML in case you want to try to get it to work with similar code:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&lt;Page HorizontalAlignment='Left' Margin='10' Width='204'&gt;<br>&lt;Border Height='204' BorderThickness='2' BorderBrush='Black'&gt;<br>&lt;WrapPanel&gt;<br>&lt;Border MinWidth='150' HorizontalAlignment='Stretch' Height='100' Background='Red'/&gt;<br>&lt;Border Width='100' Height='100' Background='Blue'/&gt;<br>&lt;Border Width='100' Height='100' Background='Green'/&gt;<br>&lt;/WrapPanel&gt;<br>&lt;/Border&gt;<br>&lt;/Page&gt;<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Wed, 24 Nov 2010 18:16:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17599&amp;PID=61537&amp;title=elastic-objects-in-wrappanel#61537</guid>
  </item> 
  <item>
   <title><![CDATA[Elastic Objects in WrapPanel : I want to put a few charts on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17599&amp;PID=61536&amp;title=elastic-objects-in-wrappanel#61536</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17599<br /><strong>Posted:</strong> 24 November 2010 at 4:52pm<br /><br />I want to put a few charts on a markup page. Some could be wide, some could be square. If I put these in a WrapPanel object, then as many that will fit in a row as possible will, and the rest will automatically move to the next row.<br><br>This is nice, and working as expected.<br><br>However, what would be nicer:<br><br>Is there was a way to stretch a child object of the WrapPanel to the full width of the panel if it is the only object on the row (the next object wrapped to the next line because it wouldn't fit), but squish it down to &gt;=MinimumWidth if the next object will fit.<br><br>So instead of ending up with this:<br><br><img src="uploads/2676/chart_squished.jpg" height="502" width="771" border="0" /><br><br>We get this:<br><br><img src="uploads/2676/chart_elastic.jpg" height="431" width="762" border="0" /><br><br>Thanks in advance for any tips.<br>]]>
   </description>
   <pubDate>Wed, 24 Nov 2010 16:52:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17599&amp;PID=61536&amp;title=elastic-objects-in-wrappanel#61536</guid>
  </item> 
 </channel>
</rss>