Note that there are some explanatory texts on larger screens.

plurals
  1. POScrollViewer reaching bottom WindowsPhone8
    primarykey
    data
    text
    <p>Im trying to open a App-Bar when the user reaches the end of the (ScrollViewer)Page... Therefore I need a indicator when the end is reached...</p> <ul> <li>My Scrollviewer (maybe because WP8) has <strong>no "ViewChanged"-event</strong> like posted in other questions</li> <li>And this solution is just overkill for my Problem I think: <a href="http://blogs.msdn.com/b/slmperf/archive/2011/06/30/windows-phone-mango-change-listbox-how-to-detect-compression-end-of-scroll-states.aspx" rel="nofollow">http://blogs.msdn.com/b/slmperf/archive/2011/06/30/windows-phone-mango-change-listbox-how-to-detect-compression-end-of-scroll-states.aspx</a></li> </ul> <p>I cant find any event within this Viewer which could help me...</p> <pre><code> &lt;ScrollViewer x:Name="SV_ScrollViewer" Grid.Row="1" Margin="12,0,12,0" ManipulationMode="Control" AllowDrop="False"&gt; &lt;Grid x:Name="ContentPanel"&gt; &lt;StackPanel&gt; &lt;Controls:Map Height="730" x:Name="M_MainMap" ZoomLevel="10" Loaded="Map_Loaded"/&gt; &lt;phone:LongListSelector x:Name="LLS_FuelStations" Height="700"&gt; &lt;/phone:LongListSelector&gt; &lt;/StackPanel&gt; &lt;/Grid&gt; &lt;/ScrollViewer&gt; </code></pre> <p>Thank you for your help!</p> <p>2-EDIT: The LayoutUpdated-Event was not good for closing app-bar again... I ended up with a Dispatcher-Timer for closing AND opening it. Now it works fine (smooth):</p> <pre><code> // Constructor public MainPage() { InitializeComponent(); Dispatcher.BeginInvoke(() =&gt; { //initialize timer if (timer == null) { int timerSpan = 500; timer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(timerSpan) }; timer.Tick += (o, arg) =&gt; OffsetWatcher(); } }); } </code></pre> <p>Closing and opening app-bar:</p> <pre><code>private void OffsetWatcher() { if (SV_ScrollViewer.ScrollableHeight - SV_ScrollViewer.VerticalOffset &gt; 100 ) { if (ApplicationBar.IsVisible) { ApplicationBar.IsVisible = false; ApplicationBar.IsMenuEnabled = false; } } else { if (!ApplicationBar.IsVisible) { BuildLocalizedApplicationBar(); } } } </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.
 

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