<?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 : 1/2 PNG image display</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : 1/2 PNG image display]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:46:59 +0000</pubDate>
  <lastBuildDate>Thu, 02 Feb 2012 21:00:29 +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=19460</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[1/2 PNG image display :   HI Guys, I have tried everything...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19460&amp;PID=67541&amp;title=1-2-png-image-display#67541</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7316">Ssytems</a><br /><strong>Subject:</strong> 19460<br /><strong>Posted:</strong> 02 February 2012 at 9:00pm<br /><br />HI Guys, I have tried everything I know but can't seem to get this to work<div>I have a MarkupLabel control with a very simple XAML and image as shown. When I pass the source&nbsp;as a path to a .png file, the label displays OK. But when I add the image to a Resource DLL and load it using the "XtremeSuiteControls.Icons.LoadBitmapFromResource oRes.hModule, 100, IDS(), xtpImageNormal" and a class code I got from this forum, only 1/2 of the image is shown. I&nbsp;have tried widths, alighnments, no luck. Can someone see if there's something I am missing in the XAML?</div><div>Here's what the image looks like with Source = ''filepath.png'</div><div><img src="uploads/7316/sysinfo1.jpg" height="113" width="315" border="0" alt="sysinfo 2" title="sysinfo 2" /></div><div>Here's what the image looks like with Source = '100' where 100= the resource id of the same image added to a dll C++ resource.&nbsp;</div><div><img src="uploads/7316/sysinfo2.jpg" height="113" width="323" border="0" /></div><div>&nbsp;</div><div>Please help. The XAML code is below.&nbsp;</div><div>==================================================</div><div>label1.Caption = _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;Grid TextElement.FontFamily='Calibri' TextElement.FontSize='17' VerticalAlignment='Center' Margin='0' HorizontalAlignment='Left' &gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;Grid.ColumnDefinitions&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;ColumnDefinition/&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;ColumnDefinition/&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;RowDefinition Height='Auto'/&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;/Grid.RowDefinitions&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;TextBlock HorizontalAlignment='Right' VerticalAlignment='Center' Grid.Column='1' Grid.Row='0' TextAlignment='Right' Width='Auto'&gt;&lt;Bold&gt;&lt;Run&gt;Status:&nbsp; &lt;/Run&gt;&lt;/Bold&gt;&lt;/TextBlock&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;TextBlock HorizontalAlignment='Right' VerticalAlignment='Center' Grid.Column='1' Grid.Row='1' TextAlignment='Right' Width='Auto'&gt;&lt;Bold&gt;User Name:&nbsp; &lt;/Bold&gt;&lt;/TextBlock&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;TextBlock HorizontalAlignment='Right' VerticalAlignment='Center' Grid.Column='1' Grid.Row='2' TextAlignment='Right' Width='Auto'&gt;&lt;Bold&gt;Create Date:&nbsp; &lt;/Bold&gt;&lt;/TextBlock&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;TextBlock HorizontalAlignment='Right' VerticalAlignment='Center' Grid.Column='1' Grid.Row='3' TextAlignment='Right' Width='Auto'&gt;&lt;Bold&gt;SAP System:&nbsp; &lt;/Bold&gt;&lt;/TextBlock&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;TextBlock VerticalAlignment='Center' Grid.Column='2' Grid.Row='0'&gt;&lt;Hyperlink Click='Hello2'&gt;&nbsp;&nbsp; Connected&lt;/Hyperlink&gt;&lt;/TextBlock&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;TextBlock VerticalAlignment='Center' Grid.Column='2' Grid.Row='1'&gt;&lt;Hyperlink&gt;Udofias&lt;/Hyperlink&gt;&lt;/TextBlock&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;TextBlock VerticalAlignment='Center' Grid.Column='2' Grid.Row='2'&gt;&lt;Hyperlink&gt;01/26/2011 9:14 PM&lt;/Hyperlink&gt;&lt;/TextBlock&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;TextBlock VerticalAlignment='Center' Grid.Column='2' Grid.Row='3'&gt;&lt;Hyperlink Click='Hello'&gt;&lt;Run&gt;Development&lt;/Run&gt;&lt;/Hyperlink&gt;&lt;/TextBlock&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;Image Grid.RowSpan='4'&nbsp; Source='100'&nbsp; Stretch='None' Width='100' Height='110' HorizontalAlignment='Left'&gt;" &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;/Grid&gt;"</div><div>=========================</div>]]>
   </description>
   <pubDate>Thu, 02 Feb 2012 21:00:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19460&amp;PID=67541&amp;title=1-2-png-image-display#67541</guid>
  </item> 
 </channel>
</rss>