Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows 8 Metro ListView - can't disable ScrollViewer (C#/XAML)
    primarykey
    data
    text
    <p>I have a ScrollViewer that contains a Horizontal StackPanel that contains 2 ListViews. </p> <p>My goal is to get the 2 ListViews to scroll together. The problem I'm having is that I can't get the built-in ScrollViewers in the ListViews to be disabled...no matter what I do, they continue to scroll independently. I really must be missing something...any help would be appreciated.</p> <p>Here's my XAML:</p> <pre><code>&lt;ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" ZoomMode="Disabled" HorizontalAlignment="Left" VerticalAlignment="Top" Width="830" Height="500"&gt; &lt;StackPanel x:Name="teesSP" HorizontalAlignment="Left" Height="500" Width="830" Orientation="Horizontal" VerticalAlignment="Top"&gt; &lt;ListView x:Name="timesLV1" HorizontalAlignment="Left" Width="130" Height="500" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollMode="Disabled" ScrollViewer.IsHorizontalRailEnabled="False" ScrollViewer.IsHorizontalScrollChainingEnabled="False" ScrollViewer.IsScrollInertiaEnabled="False" ScrollViewer.IsVerticalRailEnabled="False" ScrollViewer.IsVerticalScrollChainingEnabled="False" ScrollViewer.IsZoomChainingEnabled="False" ScrollViewer.IsZoomInertiaEnabled="False" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollMode="Disabled" BorderThickness="2" BorderBrush="Black" VerticalAlignment="Top" ItemTemplate="{StaticResource TimeTileTemplate}" SelectionMode="Single" SelectionChanged="timesLV_Click" /&gt; &lt;ListView x:Name="timesLV2" HorizontalAlignment="Left" Width="700" Height="500" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollMode="Disabled" ScrollViewer.IsHorizontalRailEnabled="False" ScrollViewer.IsHorizontalScrollChainingEnabled="False" ScrollViewer.IsScrollInertiaEnabled="False" ScrollViewer.IsVerticalRailEnabled="False" ScrollViewer.IsVerticalScrollChainingEnabled="False" ScrollViewer.IsZoomChainingEnabled="False" ScrollViewer.IsZoomInertiaEnabled="False" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollMode="Disabled" BorderThickness="2" BorderBrush="Black" VerticalAlignment="Top" ItemTemplate="{StaticResource TimeTileTemplate}" SelectionMode="Single" SelectionChanged="timesLV_Click" /&gt; &lt;/StackPanel&gt; &lt;/ScrollViewer&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload