<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Printing Sample &amp;amp; MapUnits, Scalebar, etc in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-sample-amp-amp-mapunits-scalebar-etc/m-p/79528#M1932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;the scalebar on the printout just shows NaN. I know what the means, but why? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You likely need to set the 'MapUnit' property of the scalebar control, just as you did for the MapPrinter control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;I cannot pan the map in the MapPrinterDialog window. I can zoom in and out with the mouse wheel, but that's it. &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a scrollviewer in your visual tree that could catch the click events?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try as well by removing the null background you set (Background="{x:Null}" ), this might be the reason the click events are not fired.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 05:46:15 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2011-11-17T05:46:15Z</dc:date>
    <item>
      <title>Printing Sample &amp;amp; MapUnits, Scalebar, etc</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-sample-amp-amp-mapunits-scalebar-etc/m-p/79527#M1931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've downloaded and compiled the latest print sample by dbroux.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using it, I noticed the print to scale functionality didn't work.&amp;nbsp; Poking around I noticed it was because the MapUnits was being detected as "Undefined" by the MapPrinter control.&amp;nbsp; Manually setting that to "Feet" in XAML resolved that. (The Projection is nothing weird, it's a state plane zone) However, two issue still remain:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;the scalebar on the printout just shows NaN.&amp;nbsp; I know what the means, but why?&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;I cannot pan the map in the MapPrinterDialog window.&amp;nbsp; I can zoom in and out with the mouse wheel, but that's it.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;I'm sure they're all related.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;printing:MapPrinterDialog x:Name="MapPrinterDialog" Width="340" Height="405" Background="{x:Null}" Foreground="White" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;printing:MapPrinter x:Name="mapPrinterWithDialog" Map="{Binding ElementName=MyMap}" IsActive="{Binding ElementName=btnPrint, Path=IsChecked }" MapUnits="Feet" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/printing:MapPrinterDialog&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 20:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-sample-amp-amp-mapunits-scalebar-etc/m-p/79527#M1931</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2011-11-16T20:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Sample &amp; MapUnits, Scalebar, etc</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-sample-amp-amp-mapunits-scalebar-etc/m-p/79528#M1932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;the scalebar on the printout just shows NaN. I know what the means, but why? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You likely need to set the 'MapUnit' property of the scalebar control, just as you did for the MapPrinter control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;I cannot pan the map in the MapPrinterDialog window. I can zoom in and out with the mouse wheel, but that's it. &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a scrollviewer in your visual tree that could catch the click events?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try as well by removing the null background you set (Background="{x:Null}" ), this might be the reason the click events are not fired.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 05:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-sample-amp-amp-mapunits-scalebar-etc/m-p/79528#M1932</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-11-17T05:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Sample &amp; MapUnits, Scalebar, etc</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-sample-amp-amp-mapunits-scalebar-etc/m-p/79529#M1933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You likely need to set the 'MapUnit' property of the scalebar control, just as you did for the MapPrinter control.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, where...in the template of the MapPrinter control?&amp;nbsp; EDIT:&amp;nbsp; That's exactly where I changed it and the scalebar works now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a scrollviewer in your visual tree that could catch the click events?&lt;BR /&gt;Try as well by removing the null background you set (Background="{x:Null}" ), this might be the reason the click events are not fired.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, changing the background color had no effect.&amp;nbsp; The MapPrinterDialog control is contained within a custom movable window control (like the "WindowPanel" user control in the Print Sample Project).&amp;nbsp; However, in our version, the ContentPresenter of that control is contained within a ScrollViewer.&amp;nbsp; So yes, I guess there is a ScrollViewer in the Visual Tree.&amp;nbsp; That may be the cause.&amp;nbsp; How can that be resolved (without removing the ScrollViewer from the equation)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 12:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-sample-amp-amp-mapunits-scalebar-etc/m-p/79529#M1933</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2011-11-17T12:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Sample &amp; MapUnits, Scalebar, etc</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-sample-amp-amp-mapunits-scalebar-etc/m-p/79530#M1934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it working.&amp;nbsp; I created another template for the movable window that didn't have the ContentPresenter in a ScrollViewer and used that for the MapPrinterDialog's parent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 14:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-sample-amp-amp-mapunits-scalebar-etc/m-p/79530#M1934</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2011-11-17T14:27:37Z</dc:date>
    </item>
  </channel>
</rss>

