<?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 : HOW TO: Dynamically size markup font</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : XAML Snippets : HOW TO: Dynamically size markup font]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 21:31:57 +0000</pubDate>
  <lastBuildDate>Thu, 24 Jul 2008 05:00:37 +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=11553</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[HOW TO: Dynamically size markup font : I also see only this way. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11553&amp;PID=38814&amp;title=how-to-dynamically-size-markup-font#38814</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11553<br /><strong>Posted:</strong> 24 July 2008 at 5:00am<br /><br />I also see only this way.]]>
   </description>
   <pubDate>Thu, 24 Jul 2008 05:00:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11553&amp;PID=38814&amp;title=how-to-dynamically-size-markup-font#38814</guid>
  </item> 
  <item>
   <title><![CDATA[HOW TO: Dynamically size markup font : Let&amp;#039;s say I have a rectangle,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11553&amp;PID=38784&amp;title=how-to-dynamically-size-markup-font#38784</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 11553<br /><strong>Posted:</strong> 23 July 2008 at 12:24pm<br /><br />Let's say I have a rectangle, the size of which has been computed at runtime. Now, I want to use XTP / XAML to draw a string into that rectangle using the <b>largest font size that will fit</b>.<br><br>Does anyone have any suggestions for computing the maximum font size as efficiently as possible?<br><br>My first thought was to use XTPMarkupMeasureElement to measure an CXTPMarkupUIElement object in a loop, increasing the XAML FontSize attribute until it no longer fits. But this strikes me as being fairly inefficient. I suppose this could be further improved through use of a binary search technique (e.g. to reduce the number of test cases).<br><br>Anyone know a better way?<br>]]>
   </description>
   <pubDate>Wed, 23 Jul 2008 12:24:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11553&amp;PID=38784&amp;title=how-to-dynamically-size-markup-font#38784</guid>
  </item> 
 </channel>
</rss>