This is a migrated thread and some comments may be shown as answers.

Equivalent for ItemRealized event

2 Answers 32 Views
ConversationView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marvyn
Top achievements
Rank 1
Marvyn asked on 27 Jan 2014, 12:23 AM
I'm replacing my custom LongListSelector with a RadConversationView, and I would like to replicate the functionality of loading older messages when the oldest available has been prepared/shown.

To do this, I used to have a Trigger that attached to the ItemRealized event of the LLS and invoked the associated action.

How could I do this with RadConversationView? I don't seem to have access to this type of event from the control as the AssociatedObject in the trigger.

2 Answers, 1 is accepted

Sort by
0
Marvyn
Top achievements
Rank 1
answered on 27 Jan 2014, 02:53 AM
I managed to subclass RadConversationView and expose the underlying ListBox's ScrollStateChanged event and TopVisibleItem property. With this, I can detect when I'm at the top and load more items.

The new problem I have is that loading more items (i.e. inserting new items to my ObservableCollection at index 0) makes the control scroll up to show the first of the older items. I would like the scroll viewer to stay put. Is this possible?
0
Kiril Stanoev
Telerik team
answered on 29 Jan 2014, 01:01 PM
Hi Marvyn,

Try setting the KeepLastMessageVisible property to False and let us know how it goes.

Regards,
Kiril Stanoev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
Tags
ConversationView
Asked by
Marvyn
Top achievements
Rank 1
Answers by
Marvyn
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or