<?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 Slider Inside Of Legend Does Not Work With Touch Screen (Only WPF) in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/slider-inside-of-legend-does-not-work-with-touch/m-p/360519#M9201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have slider bars on my Legend control just like the example: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LegendWithTemplates"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LegendWithTemplates&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These sliders work fine with the mouse but with touch they do not (they work in the Silverlight sample, but not in WPF).&amp;nbsp; You can tap and select the sliders thumb, but you cannot drag it.&amp;nbsp; After some investigation I found this is due to a ScrollViewer intercepting the drag gesture like this article here mentions: &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/3258709/multi-touch-scrollviewer-eating-touch-events"&gt;http://stackoverflow.com/questions/3258709/multi-touch-scrollviewer-eating-touch-events&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So first thing was to try and disable the Legends ScrollViewer by doing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ScrollViewer.HorizontalScrollBarVisibility="Disabled"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ScrollViewer.VerticalScrollBarVisibility="Disabled"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This did not work, scroll bars still come up.&amp;nbsp; So then I used Expression Blend to get the template/style for the Legend control and I did the same to the TreeView control, still has scroll bars. I then tried putting this disable code on everything in the template that would accept it, still scroll bars...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how to solve this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ideally would like to keep the scroll bars and just get the slider to work if it has the focus, but disabling the scroll bars (at least the horizontal one) is an option too.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jan 2011 22:02:09 GMT</pubDate>
    <dc:creator>RyanCoodey</dc:creator>
    <dc:date>2011-01-13T22:02:09Z</dc:date>
    <item>
      <title>Slider Inside Of Legend Does Not Work With Touch Screen (Only WPF)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/slider-inside-of-legend-does-not-work-with-touch/m-p/360519#M9201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have slider bars on my Legend control just like the example: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LegendWithTemplates"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LegendWithTemplates&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These sliders work fine with the mouse but with touch they do not (they work in the Silverlight sample, but not in WPF).&amp;nbsp; You can tap and select the sliders thumb, but you cannot drag it.&amp;nbsp; After some investigation I found this is due to a ScrollViewer intercepting the drag gesture like this article here mentions: &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/3258709/multi-touch-scrollviewer-eating-touch-events"&gt;http://stackoverflow.com/questions/3258709/multi-touch-scrollviewer-eating-touch-events&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So first thing was to try and disable the Legends ScrollViewer by doing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ScrollViewer.HorizontalScrollBarVisibility="Disabled"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ScrollViewer.VerticalScrollBarVisibility="Disabled"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This did not work, scroll bars still come up.&amp;nbsp; So then I used Expression Blend to get the template/style for the Legend control and I did the same to the TreeView control, still has scroll bars. I then tried putting this disable code on everything in the template that would accept it, still scroll bars...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how to solve this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ideally would like to keep the scroll bars and just get the slider to work if it has the focus, but disabling the scroll bars (at least the horizontal one) is an option too.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 22:02:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/slider-inside-of-legend-does-not-work-with-touch/m-p/360519#M9201</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-13T22:02:09Z</dc:date>
    </item>
  </channel>
</rss>

