Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Commented Issue: StretchingTop, StretchingBottom, StretchingCompleted, etc not working in LongListSelector [9350]

$
0
0
As the title says, StretchingTop, StretchingBottom, StretchingCompleted, ScrollingCompleted and ScrollingStarted events in the LongListSelector don't fire at all. I assume this probably has something to do with the changes to the standard underlying Listbox's scrolling handling, but it'd be really nice if these could be fixed, or removed / marked as deprecated if a workaround can't be found.

(I switch over to LLS due to the buggyness of the the standard virtualising Listbox with large amounts of variable sized items in it - it complete kills itself and jumps up and down and cuts off the bottom of the bottom item, etc).
Comments: ** Comment from web user: Frank_Krumnow **

This helped (along with the original MS post). What I did is:
FrameworkElement tlb = VisualTreeHelper.GetChild(myLongListSelector, 0) as FrameworkElement;
//get TemplatedListBox inside LongListSelector
FrameworkElement sv = VisualTreeHelper.GetChild(tlb, 0) as FrameworkElement;
//get ScrollViewer inside TemplatedListBox
FrameworkElement element = VisualTreeHelper.GetChild(sv, 0) as FrameworkElement;
//MS says VisualGroups are inside first Child of ScrollViewer so get this

From there on it's just like in the MSDN Blog posted above

As I only needed StretchingBottom I only attached a handler to the VerticalCompression and doing if (e.NewState.Name == "CompressionBottom")
After endless days of trying it is working
Thank you very much!


Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>