<?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 create a &quot;viewport&quot; with Markup/XAML?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to create a &quot;viewport&quot; with Markup/XAML?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:55:33 +0000</pubDate>
  <lastBuildDate>Wed, 09 Sep 2020 02:22:22 +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=24047</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 create a &quot;viewport&quot; with Markup/XAML? : jpbro!! This works!! Thank you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24047&amp;PID=77835&amp;title=how-to-create-a-viewport-with-markup-xaml#77835</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=101">rvoith</a><br /><strong>Subject:</strong> 24047<br /><strong>Posted:</strong> 09 September 2020 at 2:22am<br /><br />jpbro!! This works!! Thank you for trying this out!!]]>
   </description>
   <pubDate>Wed, 09 Sep 2020 02:22:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24047&amp;PID=77835&amp;title=how-to-create-a-viewport-with-markup-xaml#77835</guid>
  </item> 
  <item>
   <title><![CDATA[How to create a &quot;viewport&quot; with Markup/XAML? : Something like this appears to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24047&amp;PID=77834&amp;title=how-to-create-a-viewport-with-markup-xaml#77834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 24047<br /><strong>Posted:</strong> 08 September 2020 at 3:49pm<br /><br /><div>Something like this appears to work:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>&lt;Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' &gt;<br>&nbsp;&nbsp; &nbsp;&lt;Border Width='200' Height='200' ClipToBounds='True'&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Image Source="file://&lt;PATH TO YOUR IMAGE&gt;" Margin='-100,-100,0,0'/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Border&gt;<br>&lt;/Page&gt;</div><div></pre></td></tr></table></div><div><br></div><div>By fixing the Border width and setting ClipToBounds='True', you create a fixed size viewport. By setting the Left &amp; Right margins to negative numbers, you can move the enclosed image around the viewport.</div>]]>
   </description>
   <pubDate>Tue, 08 Sep 2020 15:49:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24047&amp;PID=77834&amp;title=how-to-create-a-viewport-with-markup-xaml#77834</guid>
  </item> 
  <item>
   <title><![CDATA[How to create a &quot;viewport&quot; with Markup/XAML? : The setting is that I have a large...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24047&amp;PID=77829&amp;title=how-to-create-a-viewport-with-markup-xaml#77829</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=101">rvoith</a><br /><strong>Subject:</strong> 24047<br /><strong>Posted:</strong> 08 September 2020 at 3:37am<br /><br />The setting is that I have a large image displayed in a markup control with a an Image-tag. I would like to display only a portion of it by using a "viewport" (in lack of a better word).&nbsp;<div><br></div><div>I'll try to illustrate this below, where you see the view port focusing on a part of the larger image;<div><img src="uploads/101/Fruits_-_viewport_-_1.jpg" height="437" width="640" border="0" alt="Viewport in acti&#111;n &#111;n a larger image" title="Viewport in acti&#111;n &#111;n a larger image" /><br></div><div><br></div><div>The viewport itself only displays what the coordinates specifies, and would look like this;</div><div><img src="uploads/101/Fruits_-_viewport_-_2.jpg" height="109" width="123" border="0" alt="Just the viewport" title="Just the viewport" /><br></div><div><br></div><div>I have tried to fiddle around with the XAML-elements Canvas, ScrollViewer, Viewbox and Image, but with no current success yet. Somehow I feel that the attributes&nbsp;ClipToBound on Image could be useful, but I seem to lack something like VerticalOffset and HorizontalOffset combined with Height and Width.</div><div><br></div><div>Does anybody have any ideas on how to create a viewport?</div></div>]]>
   </description>
   <pubDate>Tue, 08 Sep 2020 03:37:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24047&amp;PID=77829&amp;title=how-to-create-a-viewport-with-markup-xaml#77829</guid>
  </item> 
 </channel>
</rss>