<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[AB4D Forum - ZoomPanel]]></title>
		<link>https://forum.ab4d.com/</link>
		<description><![CDATA[AB4D Forum - https://forum.ab4d.com]]></description>
		<pubDate>Thu, 23 Apr 2026 10:01:40 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Forum closed notice, use Issues on GitHub instead]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4510</link>
			<pubDate>Wed, 01 Apr 2026 13:35:55 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=1">abenedik</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4510</guid>
			<description><![CDATA[This forum is closed because of problems with sending emails.<br />
<br />
Please use Issues on the <a href="https://github.com/ab4d/Ab2d.Controls.ZoomPanel.Samples" target="_blank" rel="noopener" class="mycode_url">GitHub Samples project</a>.]]></description>
			<content:encoded><![CDATA[This forum is closed because of problems with sending emails.<br />
<br />
Please use Issues on the <a href="https://github.com/ab4d/Ab2d.Controls.ZoomPanel.Samples" target="_blank" rel="noopener" class="mycode_url">GitHub Samples project</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Viewbox 'Nan' Error when ZoomPanel loaded with content at ZoomFactor greater than 1.0]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4379</link>
			<pubDate>Sun, 23 Apr 2023 22:54:37 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=12152">PWVidendum</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4379</guid>
			<description><![CDATA[We have a Zoom Panel in a ScrollViewer and when the zoom panel is loaded with content that causes it use a zoom factor greater that 1.0 and the thumbnails appear on the scroll bars the vertical scrollbar has the offset and thumbnail size incorrectly set. If you click the up or down buttons on the scrollbar or call any of the vertical related methods, such as LineDown, LineUp, SetVerticalOffset method you get an error like <br />
<br />
'0.1,NaN,0.8,0.8' is not a valid value for property 'Viewbox'.<br />
<br />
You can trigger this error with the ZoomPanel samples.  Load the application and go to the Other Methods page and make sure the first button you click is one of the following:<br />
<br />
LineUp, LineDown, MouseWheelUp, MouseWheelDown, PageUp, PageDown or SetVerticalOffset <br />
<br />
This will all trigger the error.  However if you chose one of the other options first then click one of the above no error is thrown. For example click any of the horizontal related methods first and then one of the vertical ones and it is fine.<br />
<br />
If you modify the sample to put a scrollviewer around the ZoomPanel you will notice the vertical scrollbar has an incredibly small thumbnail and is at the top of the scrollbar. <br />
<br />
This doesn't occur in the ScrollViewer sample because the initial zoom factor is not greater than 1.0.  In the set methods page you can see the image is larger that the view port and so the initial zoom factor is greater than 1.<br />
<br />
If you set the ZoomFactor of the ZoomPanel to a value greater than 1 in the constructor of the ScrollViewer sample you will get the error.  If you set the zoom factor in Loaded event it is fine.  Regardless of where you set the Zoom Factor the Horizontal scrollbar always works fine.]]></description>
			<content:encoded><![CDATA[We have a Zoom Panel in a ScrollViewer and when the zoom panel is loaded with content that causes it use a zoom factor greater that 1.0 and the thumbnails appear on the scroll bars the vertical scrollbar has the offset and thumbnail size incorrectly set. If you click the up or down buttons on the scrollbar or call any of the vertical related methods, such as LineDown, LineUp, SetVerticalOffset method you get an error like <br />
<br />
'0.1,NaN,0.8,0.8' is not a valid value for property 'Viewbox'.<br />
<br />
You can trigger this error with the ZoomPanel samples.  Load the application and go to the Other Methods page and make sure the first button you click is one of the following:<br />
<br />
LineUp, LineDown, MouseWheelUp, MouseWheelDown, PageUp, PageDown or SetVerticalOffset <br />
<br />
This will all trigger the error.  However if you chose one of the other options first then click one of the above no error is thrown. For example click any of the horizontal related methods first and then one of the vertical ones and it is fine.<br />
<br />
If you modify the sample to put a scrollviewer around the ZoomPanel you will notice the vertical scrollbar has an incredibly small thumbnail and is at the top of the scrollbar. <br />
<br />
This doesn't occur in the ScrollViewer sample because the initial zoom factor is not greater than 1.0.  In the set methods page you can see the image is larger that the view port and so the initial zoom factor is greater than 1.<br />
<br />
If you set the ZoomFactor of the ZoomPanel to a value greater than 1 in the constructor of the ScrollViewer sample you will get the error.  If you set the zoom factor in Loaded event it is fine.  Regardless of where you set the Zoom Factor the Horizontal scrollbar always works fine.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Limited Zooming - Content shifts sideways]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4332</link>
			<pubDate>Mon, 12 Sep 2022 22:00:44 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=12152">PWVidendum</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4332</guid>
			<description><![CDATA[Hi there<br />
<br />
I need to limit the zooming when using the mouse wheel so I looked at the Limited Zooming Sample. It was easy enough to add the code to my project and it works but I noticed an issue when you zoom all the way in, then zoom out a little and back in. The second time you reach the limit of the zoom the code to center the image doesn't calculate the correct values and the image jumps diagonally.   It appears the values returned in OldViewboxValue on the second time you reach the zoom limit differ substantially from those set in NewViewboxValue when the center was re-calculated the first time and this causes the second calculation to shift the center of the viewbox.<br />
<br />
It appears to only be a problem when using the mouse wheel.<br />
<br />
I haven't been able to work out how to cater for this shift in values. Any help would be greatly appreciated<br />
<br />
Regards<br />
<br />
Paul]]></description>
			<content:encoded><![CDATA[Hi there<br />
<br />
I need to limit the zooming when using the mouse wheel so I looked at the Limited Zooming Sample. It was easy enough to add the code to my project and it works but I noticed an issue when you zoom all the way in, then zoom out a little and back in. The second time you reach the limit of the zoom the code to center the image doesn't calculate the correct values and the image jumps diagonally.   It appears the values returned in OldViewboxValue on the second time you reach the zoom limit differ substantially from those set in NewViewboxValue when the center was re-calculated the first time and this causes the second calculation to shift the center of the viewbox.<br />
<br />
It appears to only be a problem when using the mouse wheel.<br />
<br />
I haven't been able to work out how to cater for this shift in values. Any help would be greatly appreciated<br />
<br />
Regards<br />
<br />
Paul]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Aspect Ratio On Zoom]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4282</link>
			<pubDate>Mon, 06 Sep 2021 15:20:44 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=12106">tony.stokes@121outsource.co.uk</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4282</guid>
			<description><![CDATA[Hi,<br />
<br />
I am using a Zoom control with the following properties set:<br />
<br />
ZoomMode="Move" <br />
Stretch="None"<br />
Viewbox="0 0 1 1"<br />
ViewboxLimits="0 0 1 1"<br />
ViewboxMinSize="0.1 0.1"<br />
IsViewboxLimited="True"  <br />
IsTouchRotateEnabled="False"<br />
<br />
All works fine until the very final part of the zoom when zooming out. If there are for example 10 zoom outs in total until the zoom out maximum level is reached, zooms 1 to 9 zoom correctly but the last zoom 10, the image inside the canvas in the zoom panel loses its Aspect Ratio?]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I am using a Zoom control with the following properties set:<br />
<br />
ZoomMode="Move" <br />
Stretch="None"<br />
Viewbox="0 0 1 1"<br />
ViewboxLimits="0 0 1 1"<br />
ViewboxMinSize="0.1 0.1"<br />
IsViewboxLimited="True"  <br />
IsTouchRotateEnabled="False"<br />
<br />
All works fine until the very final part of the zoom when zooming out. If there are for example 10 zoom outs in total until the zoom out maximum level is reached, zooms 1 to 9 zoom correctly but the last zoom 10, the image inside the canvas in the zoom panel loses its Aspect Ratio?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Minimap control lost with CustomContent]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4255</link>
			<pubDate>Thu, 15 Apr 2021 12:00:57 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=12086">martinodall</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4255</guid>
			<description><![CDATA[Hello, I am evaluating ZoomPanel for my application and I do need to use the RegisterCustomContentProvider flow.<br />
<br />
The CustomContent works fine but the Minimap control gets stucked as soon as I enable the RegisterCustomContentProvider.<br />
<br />
The target should be to keep the preview of the whole image in the Minimap with mouse controls of the rectangle enabled.<br />
<br />
Thank you,<br />
Martino]]></description>
			<content:encoded><![CDATA[Hello, I am evaluating ZoomPanel for my application and I do need to use the RegisterCustomContentProvider flow.<br />
<br />
The CustomContent works fine but the Minimap control gets stucked as soon as I enable the RegisterCustomContentProvider.<br />
<br />
The target should be to keep the preview of the whole image in the Minimap with mouse controls of the rectangle enabled.<br />
<br />
Thank you,<br />
Martino]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Settings ViewboxLimits]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4217</link>
			<pubDate>Fri, 25 Sep 2020 14:31:50 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11901">jez</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4217</guid>
			<description><![CDATA[Hi,<br />
<br />
I am trying to do the following:-<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>zp.FitToHeight();<br />
zp.ViewboxLimits = zp.Viewbox;</code></div></div><br />
so that you cannot zoom out further than the fitted zoom<br />
<br />
but this doesn't work presumably because the FitToHeight is working in another thread so the ViewboxLimits are set too soon before the Fit is completed.<br />
<br />
how can I synchronise this correctly.<br />
<br />
Ive been trying to calculate the ViewboxLimits manually but finding it a difficult with the various aspect ratios of the image and zoompanel ....<br />
<br />
Jez]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I am trying to do the following:-<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>zp.FitToHeight();<br />
zp.ViewboxLimits = zp.Viewbox;</code></div></div><br />
so that you cannot zoom out further than the fitted zoom<br />
<br />
but this doesn't work presumably because the FitToHeight is working in another thread so the ViewboxLimits are set too soon before the Fit is completed.<br />
<br />
how can I synchronise this correctly.<br />
<br />
Ive been trying to calculate the ViewboxLimits manually but finding it a difficult with the various aspect ratios of the image and zoompanel ....<br />
<br />
Jez]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[HOW TO PROGRAMMATICALLY PAN TO SPECIFIC POINT]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4151</link>
			<pubDate>Tue, 01 Oct 2019 01:53:55 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11909">Shafferjb</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4151</guid>
			<description><![CDATA[I am using the ZoomPanel to navigate around a map image that is 21600x21600.  The ZoomPanel itself is 2160x2952 (this is on a 4K display).  On the map are markers (like GoogleMap markers).  The location of the markers are relative to the map image, so a given marker's location might be 15850,9720.<br />
<br />
In general, the zoom panel works great.  However, based on user activity, I need to programmatically center a given marker in the viewbox (or as near to center as the map limits allows).  I have tried all the various "Translate" methods, and none of them work as I would have expected.  When I call the Translate methods, the map moves within the ZoomPanel, but it doesn't move where I expect it to.   <br />
<br />
For example, when I call TranslateToCenter(new Point(10800,10800)) or TranlateToCenterRelative(new Point(0.5, 0.5)), I would expect the map to move to the center of the map image , but it only moves the map a short (and seemingly random) distance towards the center.<br />
<br />
What is the correct method of programmatically setting the center point to a specific x,y location, or getting the given x,y location as close to the center as possible without violating the Viewbox limits?<br />
<br />
Here is the xaml for the ZoomPanel:<br />
<br />
<span style="font-family: Courier New;" class="mycode_font">&lt;ab2d:ZoomPanel x:Name="exploreMapZoom" IsViewboxLimited="True" ViewboxLimits="0 0 1 1" ViewboxMinSize="0.1 0.1" Stretch="UniformToFill" CenterPosition="0.5 0.5" CenterPositionUnits="Relative" IsAnimated="True"&gt;</span><br />
<span style="font-family: Courier New;" class="mycode_font">   &lt;Grid x:Name="exploreMapGrid" Width="21600" Height="21600"&gt;</span><br />
<span style="font-family: Courier New;" class="mycode_font">      &lt;Image x:Name="exploreMapImage" HorizontalAlignment="Left" VerticalAlignment="Top" Source="ExploreMap.jpg"/&gt;</span><br />
<span style="font-family: Courier New;" class="mycode_font">   &lt;/Grid&gt;</span><br />
<span style="font-family: Courier New;" class="mycode_font">&lt;/ab2d:ZoomPanel&gt;</span><br />
<br />
Attached is a screen capture of the map within the ZoomPanel, including a ZoomPanelDump.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=134" target="_blank" title="">zoompanelmap.png</a> (Size: 238.7 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[I am using the ZoomPanel to navigate around a map image that is 21600x21600.  The ZoomPanel itself is 2160x2952 (this is on a 4K display).  On the map are markers (like GoogleMap markers).  The location of the markers are relative to the map image, so a given marker's location might be 15850,9720.<br />
<br />
In general, the zoom panel works great.  However, based on user activity, I need to programmatically center a given marker in the viewbox (or as near to center as the map limits allows).  I have tried all the various "Translate" methods, and none of them work as I would have expected.  When I call the Translate methods, the map moves within the ZoomPanel, but it doesn't move where I expect it to.   <br />
<br />
For example, when I call TranslateToCenter(new Point(10800,10800)) or TranlateToCenterRelative(new Point(0.5, 0.5)), I would expect the map to move to the center of the map image , but it only moves the map a short (and seemingly random) distance towards the center.<br />
<br />
What is the correct method of programmatically setting the center point to a specific x,y location, or getting the given x,y location as close to the center as possible without violating the Viewbox limits?<br />
<br />
Here is the xaml for the ZoomPanel:<br />
<br />
<span style="font-family: Courier New;" class="mycode_font">&lt;ab2d:ZoomPanel x:Name="exploreMapZoom" IsViewboxLimited="True" ViewboxLimits="0 0 1 1" ViewboxMinSize="0.1 0.1" Stretch="UniformToFill" CenterPosition="0.5 0.5" CenterPositionUnits="Relative" IsAnimated="True"&gt;</span><br />
<span style="font-family: Courier New;" class="mycode_font">   &lt;Grid x:Name="exploreMapGrid" Width="21600" Height="21600"&gt;</span><br />
<span style="font-family: Courier New;" class="mycode_font">      &lt;Image x:Name="exploreMapImage" HorizontalAlignment="Left" VerticalAlignment="Top" Source="ExploreMap.jpg"/&gt;</span><br />
<span style="font-family: Courier New;" class="mycode_font">   &lt;/Grid&gt;</span><br />
<span style="font-family: Courier New;" class="mycode_font">&lt;/ab2d:ZoomPanel&gt;</span><br />
<br />
Attached is a screen capture of the map within the ZoomPanel, including a ZoomPanelDump.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=134" target="_blank" title="">zoompanelmap.png</a> (Size: 238.7 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to detect when image is clipped to turn panning on]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4146</link>
			<pubDate>Wed, 14 Aug 2019 11:21:31 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11901">jez</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4146</guid>
			<description><![CDATA[Similar to previous question ...<br />
<br />
I am looking at an 1920x1080 image in a ZoomPanel. I am using mouse and touch.<br />
<br />
When the image is completely visible, I want to pin it to center position and prevent mouse/touch panning.<br />
<br />
When the image is clipped because of zoom in, I want to allow panning to view otherwise hidden pixels.<br />
<br />
I can prevent the panning but I cant seem to figure out when the image is clipping to turn panning on and off at the right moment.<br />
<br />
Jez]]></description>
			<content:encoded><![CDATA[Similar to previous question ...<br />
<br />
I am looking at an 1920x1080 image in a ZoomPanel. I am using mouse and touch.<br />
<br />
When the image is completely visible, I want to pin it to center position and prevent mouse/touch panning.<br />
<br />
When the image is clipped because of zoom in, I want to allow panning to view otherwise hidden pixels.<br />
<br />
I can prevent the panning but I cant seem to figure out when the image is clipping to turn panning on and off at the right moment.<br />
<br />
Jez]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Runtime error: ZoomPanelMiniMap.cs not found]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4137</link>
			<pubDate>Tue, 18 Jun 2019 11:30:54 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11881">NotHM</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4137</guid>
			<description><![CDATA[Got handed down a project from another engineer who left recently. Finally got round to giving attention to it. It compiled successfully but got that runtime error. StackTrace attached. Strange thing is the <br />
<br />
---<br />
Locating source for 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs'. Checksum: MD5 {64 ff 3b 9b 1d a9 ac fb 1a 96 29 31 be d8 c7 41}<br />
The file 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs' does not exist.<br />
Looking in script documents for 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs'...<br />
Looking in the Edit-and-Continue directory 'C:\*REAL_LOCAL_PATH*\enc_temp_folder\'...<br />
The file with the matching checksum was not found in the Edit-and-Continue directory.<br />
Looking in the projects for 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs'.<br />
The file was not found in a project.<br />
Searching for documents embedded in the symbol file.<br />
An embedded document was not found.<br />
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: d:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs.<br />
The debugger could not locate the source file 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs'.<br />
---<br />
<br />
The project compiled and ran successfully at least until last week. Code hasn't been changed since. Only thing that changed in the environment is the repository link.<br />
<br />
Can anyone give an insight to why this is happening?]]></description>
			<content:encoded><![CDATA[Got handed down a project from another engineer who left recently. Finally got round to giving attention to it. It compiled successfully but got that runtime error. StackTrace attached. Strange thing is the <br />
<br />
---<br />
Locating source for 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs'. Checksum: MD5 {64 ff 3b 9b 1d a9 ac fb 1a 96 29 31 be d8 c7 41}<br />
The file 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs' does not exist.<br />
Looking in script documents for 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs'...<br />
Looking in the Edit-and-Continue directory 'C:\*REAL_LOCAL_PATH*\enc_temp_folder\'...<br />
The file with the matching checksum was not found in the Edit-and-Continue directory.<br />
Looking in the projects for 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs'.<br />
The file was not found in a project.<br />
Searching for documents embedded in the symbol file.<br />
An embedded document was not found.<br />
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: d:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs.<br />
The debugger could not locate the source file 'd:\Projects\workspace\company\Nexgen\Source\NextGen\Main\CO.Phoenix\Source\Resource\ZoomPanel\ZoomPanelMiniMap.cs'.<br />
---<br />
<br />
The project compiled and ran successfully at least until last week. Code hasn't been changed since. Only thing that changed in the environment is the repository link.<br />
<br />
Can anyone give an insight to why this is happening?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[ViewboxLimits]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4136</link>
			<pubDate>Fri, 14 Jun 2019 18:07:21 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11879">B.O.B.</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4136</guid>
			<description><![CDATA[I've been experimenting with the Painter sample. If I check the 'Is Viewbox limited', I get the panning behavior I desired (I can't pan outside normal display bounds with the mini map). <br />
<br />
I won't be allowing mouse wheel on the MiniMap. I only want to limit panning.<br />
I don't really understand what the Viewbox rect represent (I've read and re-read the documentation), but I can't wrap my head around it for some reason.<br />
<br />
If I want to allow any zoom, but limit panning, what would I set for the ViewboxLimits and/or ViewboxMinSize?<br />
<br />
------<br />
<br />
Also, I noticed a bit of a behavior I don't really like with the MiniMap, and don't like, but also unsure how to fix: when zoomed in partially, but not enough where the red box is smaller than the width / height of the actual image, I'm able to pan outside of the bounds (slightly) even when IsViewboxLimited is true.<br />
<br />
<br />
IE, in the Painter sample, when I'm slightly zoomed in, the vertical bars are enabled, but horizontal bars are disabled (because the content isn't wide enough yet). But even though the horizontal bars are disabled, I can pan left and right. I'd like the content to remain centered (vertically &amp; horizontally), and only allow panning if the appropriate direction scrollbar is enabled / visible.<br />
<br />
Here's some screenshots of what I'm trying to describe:<br />
I've zoomed in but haven't panned yet:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=110" target="_blank" title="">ZoomedNotPanned.png</a> (Size: 91.09 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment --><br />
<br />
I panned to the left most edge:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=111" target="_blank" title="">ZoomedPannedLeft.png</a> (Size: 102.83 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment --><br />
<br />
I panned to the right most edge:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=112" target="_blank" title="">ZoomedPannedRight.png</a> (Size: 102.4 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment --><br />
<br />
Basically, in the above screenshots, I should be allowed to pan vertically (because the scroll bars are enabled), but not horizontally. Horizontal should remain centered on the content.<br />
<br />
I'm also going to have causes where because I'm using StretchAndZoomDirection: DownAndZoom, I will have an image that even when slightly zoomed in will not have vertical or horizontal scrollbars yet, and the panning there should not be allowed to pan in any direction.]]></description>
			<content:encoded><![CDATA[I've been experimenting with the Painter sample. If I check the 'Is Viewbox limited', I get the panning behavior I desired (I can't pan outside normal display bounds with the mini map). <br />
<br />
I won't be allowing mouse wheel on the MiniMap. I only want to limit panning.<br />
I don't really understand what the Viewbox rect represent (I've read and re-read the documentation), but I can't wrap my head around it for some reason.<br />
<br />
If I want to allow any zoom, but limit panning, what would I set for the ViewboxLimits and/or ViewboxMinSize?<br />
<br />
------<br />
<br />
Also, I noticed a bit of a behavior I don't really like with the MiniMap, and don't like, but also unsure how to fix: when zoomed in partially, but not enough where the red box is smaller than the width / height of the actual image, I'm able to pan outside of the bounds (slightly) even when IsViewboxLimited is true.<br />
<br />
<br />
IE, in the Painter sample, when I'm slightly zoomed in, the vertical bars are enabled, but horizontal bars are disabled (because the content isn't wide enough yet). But even though the horizontal bars are disabled, I can pan left and right. I'd like the content to remain centered (vertically &amp; horizontally), and only allow panning if the appropriate direction scrollbar is enabled / visible.<br />
<br />
Here's some screenshots of what I'm trying to describe:<br />
I've zoomed in but haven't panned yet:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=110" target="_blank" title="">ZoomedNotPanned.png</a> (Size: 91.09 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment --><br />
<br />
I panned to the left most edge:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=111" target="_blank" title="">ZoomedPannedLeft.png</a> (Size: 102.83 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment --><br />
<br />
I panned to the right most edge:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=112" target="_blank" title="">ZoomedPannedRight.png</a> (Size: 102.4 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment --><br />
<br />
Basically, in the above screenshots, I should be allowed to pan vertically (because the scroll bars are enabled), but not horizontally. Horizontal should remain centered on the content.<br />
<br />
I'm also going to have causes where because I'm using StretchAndZoomDirection: DownAndZoom, I will have an image that even when slightly zoomed in will not have vertical or horizontal scrollbars yet, and the panning there should not be allowed to pan in any direction.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Binding a Viewport to ZoomPanel]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4114</link>
			<pubDate>Thu, 05 Jul 2018 12:09:50 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11795">RUL</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4114</guid>
			<description><![CDATA[Hello<br />
<br />
I want to show a customized svg in a ZoomPanel with a customized Viewport, while having a clean MVVM pattern.<br />
<br />
I'm currently loading an svg in the ViewModel like so: <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>var readerSvg = new Ab2d.ReaderSvg();<br />
svgViewbox = readerSvg.Read(svgFilePath);</code></div></div><br />
This gives me a System.Windows.Controls.Viewbox, which I need to loop through its Children to find customize certain parts of the SVG. This works perfectly.<br />
<br />
After that, I <span style="font-weight: bold;" class="mycode_b"><span style="text-decoration: underline;" class="mycode_u">could</span></span> add the svgViewbox to a ZoomPanel, via the Content-Tag:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&lt;ab2d:ZoomPanel x:Name="MyZoomPanel" Content="{Binding SvgViewbox}" /&gt;</code></div></div><br />
<span style="font-weight: bold;" class="mycode_b"><span style="text-decoration: underline;" class="mycode_u"><br />
But</span></span> then how to set a Viewport in the form of a Rect?<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Rect rectViewport = new Rect(xFactor, yFactor, widthFactor, heightFactor)</code></div></div><br />
I already know the method SetViewboxNow(rectViewport);<br />
But i want to bind this rectViewport in XAML, to stay true to MVVM pattern.<br />
Thanks in advance.]]></description>
			<content:encoded><![CDATA[Hello<br />
<br />
I want to show a customized svg in a ZoomPanel with a customized Viewport, while having a clean MVVM pattern.<br />
<br />
I'm currently loading an svg in the ViewModel like so: <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>var readerSvg = new Ab2d.ReaderSvg();<br />
svgViewbox = readerSvg.Read(svgFilePath);</code></div></div><br />
This gives me a System.Windows.Controls.Viewbox, which I need to loop through its Children to find customize certain parts of the SVG. This works perfectly.<br />
<br />
After that, I <span style="font-weight: bold;" class="mycode_b"><span style="text-decoration: underline;" class="mycode_u">could</span></span> add the svgViewbox to a ZoomPanel, via the Content-Tag:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&lt;ab2d:ZoomPanel x:Name="MyZoomPanel" Content="{Binding SvgViewbox}" /&gt;</code></div></div><br />
<span style="font-weight: bold;" class="mycode_b"><span style="text-decoration: underline;" class="mycode_u"><br />
But</span></span> then how to set a Viewport in the form of a Rect?<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Rect rectViewport = new Rect(xFactor, yFactor, widthFactor, heightFactor)</code></div></div><br />
I already know the method SetViewboxNow(rectViewport);<br />
But i want to bind this rectViewport in XAML, to stay true to MVVM pattern.<br />
Thanks in advance.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Panning beyond image]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4107</link>
			<pubDate>Thu, 26 Apr 2018 14:49:54 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11775">jrosario</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4107</guid>
			<description><![CDATA[I need the ability to pan beyond the extents of a canvas so I can center a corner of canvas in the middle of the form. Our users need to zoom into detailed areas that they want centered. <br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=93" target="_blank" title="">zoomedin.png</a> (Size: 23.8 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment --><br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=94" target="_blank" title="">WhatINeed.png</a> (Size: 14.83 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[I need the ability to pan beyond the extents of a canvas so I can center a corner of canvas in the middle of the form. Our users need to zoom into detailed areas that they want centered. <br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=93" target="_blank" title="">zoomedin.png</a> (Size: 23.8 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment --><br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=94" target="_blank" title="">WhatINeed.png</a> (Size: 14.83 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Maximum size of content]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4101</link>
			<pubDate>Thu, 15 Mar 2018 21:50:20 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11754">dww07@att.net</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4101</guid>
			<description><![CDATA[I am using ZoomPanel with a windows canvas. How do I set the size of the content. I.E. the canvas control.<br />
<br />
I know how to set the height and width of the canvas but does that increase the zoomable area?<br />
<br />
I need a very large canvas and setting the size doesn't seem to effect the drawing area.<br />
Sorry if this is a dumb questions. I am evaluating the product.]]></description>
			<content:encoded><![CDATA[I am using ZoomPanel with a windows canvas. How do I set the size of the content. I.E. the canvas control.<br />
<br />
I know how to set the height and width of the canvas but does that increase the zoomable area?<br />
<br />
I need a very large canvas and setting the size doesn't seem to effect the drawing area.<br />
Sorry if this is a dumb questions. I am evaluating the product.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Customize ZoomPanelNavigator]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4083</link>
			<pubDate>Tue, 13 Feb 2018 17:44:55 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11706">tde</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4083</guid>
			<description><![CDATA[Is it possible to customize the ZoomPanelNavigator further?<br />
<br />
I have seen in the examples that I can change color and size.<br />
<br />
But can I change the look of the buttons and the slider or use my own images?]]></description>
			<content:encoded><![CDATA[Is it possible to customize the ZoomPanelNavigator further?<br />
<br />
I have seen in the examples that I can change color and size.<br />
<br />
But can I change the look of the buttons and the slider or use my own images?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Zoom Panel Minimum Zoom]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4082</link>
			<pubDate>Tue, 13 Feb 2018 10:41:22 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=11706">tde</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4082</guid>
			<description><![CDATA[Hi,<br />
<br />
I am trying to add the ZoomPanel to my image editing application. It works so far but I can not seem to figure out how to zoom out past the ZoomPanel boundaries.<br />
<br />
Here is an image of my Minimum Zoom, I can not zoom out further than that.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=84" target="_blank" title="">zoompanel.jpg</a> (Size: 97.15 KB / Downloads: 3)
<!-- end: postbit_attachments_attachment --><br />
<br />
<br />
And here is my code:<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&lt;UserControl x:Class="Electric.View.CanvasView"<br />
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br />
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<br />
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" <br />
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" <br />
             xmlns:ab2d="clr-namespace:Ab2d.Controls;assembly=Ab2d.Controls.ZoomPanel"<br />
             xmlns:local="clr-namespace:Electric.View"<br />
             DataContext="{Binding Source={StaticResource Locator}, Path=Canvas}"<br />
             mc:Ignorable="d" <br />
             d:DesignHeight="800" d:DesignWidth="800"<br />
             Background="Green"&gt;<br />
    &lt;Grid&gt;<br />
        &lt;ab2d:ZoomPanel Name="ZoomPanel1" ZoomMode="Rectangle" VerticalAlignment="Center" HorizontalAlignment="Center"<br />
            ViewboxLimits="0 0 1 1"<br />
             ViewboxMinSize="0.1 0.1"<br />
             IsViewboxLimited="False"<br />
             IsZoomPositionPreserved="True"<br />
             Viewbox="0 0 1 1"&gt;<br />
             &lt;Image <br />
                 Source="{Binding ViewerImage}" <br />
                 Width="{Binding ViewerImage.Width}" <br />
                 Height="{Binding ViewerImage.Height}"/&gt;<br />
         &lt;/ab2d:ZoomPanel&gt;<br />
        &lt;ab2d:ZoomController VerticalAlignment="Top" HorizontalAlignment="Right"/&gt;<br />
        &lt;ab2d:ZoomPanelNavigator VerticalAlignment="Top" HorizontalAlignment="Left"/&gt;<br />
        &lt;ab2d:ZoomPanelMiniMap VerticalAlignment="Bottom" HorizontalAlignment="Right"/&gt;<br />
    &lt;/Grid&gt;<br />
&lt;/UserControl&gt;</code></div></div><br />
Can you help?]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I am trying to add the ZoomPanel to my image editing application. It works so far but I can not seem to figure out how to zoom out past the ZoomPanel boundaries.<br />
<br />
Here is an image of my Minimum Zoom, I can not zoom out further than that.<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=84" target="_blank" title="">zoompanel.jpg</a> (Size: 97.15 KB / Downloads: 3)
<!-- end: postbit_attachments_attachment --><br />
<br />
<br />
And here is my code:<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&lt;UserControl x:Class="Electric.View.CanvasView"<br />
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br />
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<br />
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" <br />
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" <br />
             xmlns:ab2d="clr-namespace:Ab2d.Controls;assembly=Ab2d.Controls.ZoomPanel"<br />
             xmlns:local="clr-namespace:Electric.View"<br />
             DataContext="{Binding Source={StaticResource Locator}, Path=Canvas}"<br />
             mc:Ignorable="d" <br />
             d:DesignHeight="800" d:DesignWidth="800"<br />
             Background="Green"&gt;<br />
    &lt;Grid&gt;<br />
        &lt;ab2d:ZoomPanel Name="ZoomPanel1" ZoomMode="Rectangle" VerticalAlignment="Center" HorizontalAlignment="Center"<br />
            ViewboxLimits="0 0 1 1"<br />
             ViewboxMinSize="0.1 0.1"<br />
             IsViewboxLimited="False"<br />
             IsZoomPositionPreserved="True"<br />
             Viewbox="0 0 1 1"&gt;<br />
             &lt;Image <br />
                 Source="{Binding ViewerImage}" <br />
                 Width="{Binding ViewerImage.Width}" <br />
                 Height="{Binding ViewerImage.Height}"/&gt;<br />
         &lt;/ab2d:ZoomPanel&gt;<br />
        &lt;ab2d:ZoomController VerticalAlignment="Top" HorizontalAlignment="Right"/&gt;<br />
        &lt;ab2d:ZoomPanelNavigator VerticalAlignment="Top" HorizontalAlignment="Left"/&gt;<br />
        &lt;ab2d:ZoomPanelMiniMap VerticalAlignment="Bottom" HorizontalAlignment="Right"/&gt;<br />
    &lt;/Grid&gt;<br />
&lt;/UserControl&gt;</code></div></div><br />
Can you help?]]></content:encoded>
		</item>
	</channel>
</rss>