<?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 : [SOLVED]XAML hypertext underline is sticking</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : MarkupLabel Control : [SOLVED]XAML hypertext underline is sticking]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 09:01:13 +0000</pubDate>
  <lastBuildDate>Sat, 12 Nov 2016 10:13:48 +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=23197</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[[SOLVED]XAML hypertext underline is sticking : Hello Lodep59,I&amp;#039;m glad to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75326&amp;title=solvedxaml-hypertext-underline-is-sticking#75326</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 23197<br /><strong>Posted:</strong> 12 November 2016 at 10:13am<br /><br />Hello Lodep59,<br><br>I'm glad to inform you that the issue has been fixed.<br>As hotfix you can change function as below.<br><br>SIZE CXTPMarkupGdiPlusDeviceContext::MeasureString(LPCWSTR lpszText, int nCount) const<br>{<br>&nbsp;&nbsp;&nbsp; SIZE sz = { 0 };<br><br>&nbsp;&nbsp;&nbsp; RectF rc;<br>&nbsp;&nbsp;&nbsp; RectF layoutRect(0, 0, 0.0f, 0.0f);<br><br>&nbsp;&nbsp;&nbsp; if (Gdiplus::Ok == m_pGdiPlus-&gt;GdipMeasureString(GetGraphics(),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpszText, nCount, AccessFont(), &amp;layoutRect,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pGpStringFormat, &amp;rc, 0, 0))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sz.cx = static_cast&lt;int&gt;(CXTPMathUtils::Round(rc.Width)); //fixed<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sz.cy = static_cast&lt;int&gt;(CXTPMathUtils::Round(rc.Height)); //fixed<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return sz;<br>}<br>]]>
   </description>
   <pubDate>Sat, 12 Nov 2016 10:13:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75326&amp;title=solvedxaml-hypertext-underline-is-sticking#75326</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]XAML hypertext underline is sticking : It seems to be related to GDI+.See...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75317&amp;title=solvedxaml-hypertext-underline-is-sticking#75317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 23197<br /><strong>Posted:</strong> 10 November 2016 at 5:20pm<br /><br />It seems to be related to GDI+.<div>See the examples below (note the space aroud the "sender adress" and the fact that the final dot is not positioned correctly when GDI+ is on) :</div><div><br></div><div><img src="uploads/4049/2016-11-10_23h11_32.png" height="100" width="383" border="0" /><br></div><div><br></div><div><img src="uploads/4049/2016-11-10_23h11_09.png" height="104" width="348" border="0" /><br></div><div><br></div><div>For my label, ok, I can access the "MarkupContext" object and disable GDI+.</div><div>But it seems to be a bug don't you think ?</div><div>And, also, for some controls (like taskpanel) I can enable markup but I can't access the markup context object !</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 10 Nov 2016 17:20:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75317&amp;title=solvedxaml-hypertext-underline-is-sticking#75317</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]XAML hypertext underline is sticking : I&amp;#039;ve tried more than 20 fonts...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75316&amp;title=solvedxaml-hypertext-underline-is-sticking#75316</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 23197<br /><strong>Posted:</strong> 10 November 2016 at 4:55pm<br /><br />I've tried more than 20 fonts and, for all of them, the underline is stuck to the text...<div>Oleksandr : can you help me ?</div>]]>
   </description>
   <pubDate>Thu, 10 Nov 2016 16:55:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75316&amp;title=solvedxaml-hypertext-underline-is-sticking#75316</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]XAML hypertext underline is sticking : I agree with you... Any solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75315&amp;title=solvedxaml-hypertext-underline-is-sticking#75315</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 23197<br /><strong>Posted:</strong> 10 November 2016 at 3:54pm<br /><br />I agree with you... Any solution ?]]>
   </description>
   <pubDate>Thu, 10 Nov 2016 15:54:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75315&amp;title=solvedxaml-hypertext-underline-is-sticking#75315</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]XAML hypertext underline is sticking :   olebed wrote:There many changes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75314&amp;title=solvedxaml-hypertext-underline-is-sticking#75314</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1263">Fredrik</a><br /><strong>Subject:</strong> 23197<br /><strong>Posted:</strong> 10 November 2016 at 1:27pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by olebed" alt="Originally posted by olebed" style="vertical-align: text-bottom;" /> <strong>olebed wrote:</strong><br /><br />There many changes between these versions, try to use other font or its properties.</td></tr></table><div><br></div><div>... I don't really think the solution here is to use another font. I'd like to continue using Segoe UI in my case...&nbsp;</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 10 Nov 2016 13:27:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75314&amp;title=solvedxaml-hypertext-underline-is-sticking#75314</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]XAML hypertext underline is sticking : I tried but can&amp;#039;t find a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75312&amp;title=solvedxaml-hypertext-underline-is-sticking#75312</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 23197<br /><strong>Posted:</strong> 10 November 2016 at 12:41pm<br /><br />I tried but can't find a suitable font... Do you have one ?]]>
   </description>
   <pubDate>Thu, 10 Nov 2016 12:41:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75312&amp;title=solvedxaml-hypertext-underline-is-sticking#75312</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]XAML hypertext underline is sticking : There many changes between these...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75311&amp;title=solvedxaml-hypertext-underline-is-sticking#75311</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23197<br /><strong>Posted:</strong> 10 November 2016 at 11:55am<br /><br />There many changes between these versions, try to use other font or its properties.]]>
   </description>
   <pubDate>Thu, 10 Nov 2016 11:55:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75311&amp;title=solvedxaml-hypertext-underline-is-sticking#75311</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]XAML hypertext underline is sticking : (moved from this topic)Thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75307&amp;title=solvedxaml-hypertext-underline-is-sticking#75307</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 23197<br /><strong>Posted:</strong> 10 November 2016 at 9:39am<br /><br /><a href="http://forum.codejock.com/forum_posts.asp?TID=23193" rel="nofollow">(moved from this topic)</a><br>Thanks a lot&nbsp;<span style=": rgb248, 248, 252;">Oleksandr&nbsp;! It's clear now :)</span><div><span style=": rgb248, 248, 252;">Waiting for your samples updated (next version I presume ?).</span></div><div><span style=": rgb248, 248, 252;">Another question : can you explain me why the same XAML code produces these two different&nbsp;results in 16.3 and 17.3 ?</span></div><div><br></div><div><a href="http://forum.codejock.com/uploads/4049/2016-11-10_15h33_16.png" rel="nofollow">http://forum.codejock.com/uploads/4049/2016-11-10_15h33_16.png</a></div><div><img src="uploads/4049/2016-11-10_15h33_16.png" border="0" /><br></div><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;">The hypertext underline is sticking to the text in 17.3, the 16.3 result seems a lot more readable...</span></div><div><span style=": rgb248, 248, 252;">Thanks.</span></div>]]>
   </description>
   <pubDate>Thu, 10 Nov 2016 09:39:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23197&amp;PID=75307&amp;title=solvedxaml-hypertext-underline-is-sticking#75307</guid>
  </item> 
 </channel>
</rss>