longlistselector

Scrolling a LongListSelector by its Vertical Offset by getting its Viewport - can't add a dynamic value to SetViewportOrigin()

本秂侑毒 提交于 2019-12-13 19:18:36
问题 So finally, I get the ViewportControl that I've been looking for the LongListSelector from so long but when I try to scroll to a specific offset using the below methods, I'm not able to scroll to the offset. I'm using a public static class GlobalVars (Global Variables) to pass data between pages. So when a user selects an item from the LongListSelector -> Navigates to ItemDetail Page by this: private void llsArtists_SelectionChanged(object sender, SelectionChangedEventArgs e) {

LongListSelector WP8 ItemRealized -infinite scrollable list-

我们两清 提交于 2019-12-13 17:44:10
问题 I am trying to implement a infinitive scrollable List with dynamic load. (like http://blogs.windows.com/windows_phone/b/wpdev/archive/2012/10/01/how-to-create-an-infinite-scrollable-list-with-longlistselector.aspx ) The DataSource is bound to a ObservableCollection The filling of the list starts with adding items to the collection The ItemRealizedEvent starts further fillings of the ObservableCollection I thought the ItemrealizedEvent is triggered by scrolling BUT it triggers always after

Use object properties in LongListSelector (XAML)

和自甴很熟 提交于 2019-12-13 04:50:05
问题 I'm trying to use the LongListSelector to show a list of notes in my WP8 application. I use a list of Note (Note is my object name) and Note has two properties : Titre and Contenu . Simply, I want to display the Titre property of my object in my LongListSelector. I have this code : ListeNotes.ItemsSource = ListNotes (because ListNotes is my List's name and ListeNotes is my LongListSelector's name). But it shows a list containing only CloudyNote.Note the number of time I have notes. How could

LongListSelector not working (not navigating to other pages)

牧云@^-^@ 提交于 2019-12-13 04:05:50
问题 I have implemented a LongListSelector for my Windows Phone 7 app. However when I tap an item it doesn't navigate to the desired page. Does anyone know why and how this can be fixed? Below is my code. Each page has it's own uri and I want to navigate to different pages. All help would be very much appreciated. Many thanks Code: Imports System.Linq Imports Microsoft.Phone.Controls Partial Public Class Victoria_line Inherits PhoneApplicationPage Public Sub New() InitializeComponent() Dim source

how to do a CompositeCollection in WP8?

☆樱花仙子☆ 提交于 2019-12-13 04:02:45
问题 i have a LongListSelector in windows phone 8, i wanna bind two ObservableCollections to the LongListSelector. the Question is how do i support multi binding in LongListSelector search on the internet... someone suggests CompositeCollection, windows phone dev env cannot identify CompositeCollection, does windows phone support CompositeCollection? <phone:LongListSelector x:Name="articleList" Grid.Row="1" Margin="0,0,-12,0" DataContext="{StaticResource viewModel}" ItemTemplate="{StaticResource

How to create a LongListSelector control programmatically

元气小坏坏 提交于 2019-12-13 02:16:45
问题 This is yet another LongListSelector question.. I need to have some selectors with this style and add different bindings to them: <phone:LongListSelector x:Name="ListSelector"> <phone:LongListSelector.ItemTemplate> <DataTemplate> <StackPanel Name="containerStack" Margin="0,0,0,0" Orientation="Horizontal"> <StackPanel HorizontalAlignment="Left" Height="Auto" VerticalAlignment="Top" Width="60" Margin="3,20,2,20"> <TextBlock TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}"

Scroll to particular item in longlist selector after binding

╄→гoц情女王★ 提交于 2019-12-12 09:54:39
问题 I am using Longlistselector to bind the chat messages. After binding i need to show the last message. But by default it is coming to top message. I tryed scroll to last item "(ScrollTo(lastmessage))" but it is not working. can any one provide the solution. 回答1: Others have found success by calling UpdateLayout() before ScrollIntoView() on a ListBox. 回答2: Have you tried using AnimateTo() and passing it the last item in the list. Alternatively, you could interrogate the visual tree of the

Windows Phone 8 Long List Selector - scroll to bottom after data loaded async

左心房为你撑大大i 提交于 2019-12-12 09:25:03
问题 I'm creating an app similar to the stock Messaging. But i'm very new to wp8 development and also to c# and .net I'm using the Long List Selector to display messages. Messages are loaded on NavigatedTo event of the page. the handler is async as it is loading the data from a webservice, when there are 0 stored in local db, then it saves them in local database. I would like to scroll to the last message after the data is loaded. the page OnNavigated to protected override async void OnNavigatedTo

Empty LongListSelector has infinite length

柔情痞子 提交于 2019-12-12 06:45:35
问题 I have a LongListSelector which is inside a StackPanel . when this LLS is empty, it has infinite length and elements which are at the bottom of it can't be seen. <StackPanel Orientation="Vertical"> <phone:LongListSelector> </phone:LongListSelector> </StackPanel> but when I set it's ItemsSource , it gets fine. I tried assigning it's VerticalAlignment to top, but didn't solved the issue How to make it's size not fill the form? 回答1: (I've edited this post to make it better) First of all lets

WP8 working with XML and LongListSelector

拜拜、爱过 提交于 2019-12-11 19:34:08
问题 I'm trying to make a LongListSelector from xml file data. public MainPage() { InitializeComponent(); XDocument loadedData = XDocument.Load("/Resources/EuroTrip.xml"); var data = from query in loadedData.Descendants("country") select new Country { Name = (string)query.Element("name"), IdentityCard = (string)query.Element("identityCard"), CompulsoryDocuments = (string)query.Element("compulsoryDocuments"), Regulations = (string)query.Element("regulations"), Equipment = (string)query.Element(