longlistselector

Substitute of WP LongListSelector in Windows Store App?

谁说我不能喝 提交于 2019-12-06 11:34:15
I am working on porting a Windows Phone app to Windows Store and I looking for the best substitute of the WP LongList Selector. The ListView is not quite what I am looking for since it lacks some features I need: I need to create a grouped list of items where each group has a header and a footer. Grouping and headers are no problem in ListView but footer are not supported (are they). Is there some control for Windows Store that has the same feature set as the LongListSelector for WP? If not in the SDK maybe there is some third-party control that offers these features? Thank you very much!

How to adjust screen when keyboard open in windows phone 8?

怎甘沉沦 提交于 2019-12-06 10:25:19
问题 I am working in Windows phone 8. In One of the pages of my app there is a LongListSelector and under it there is a TextBox . When the TextBox get focused then keyboard is opened. As the keyboard is opened then the LongListSelector is shifted up by keyboard height. If I maintain the margin of the LongListSelector by keyboard's offset then some of the items of LongListSelector go under the keyboard. All I want to do is when keyboard is shown then margin will be updated and the previous focused

Scroll to particular item in longlist selector after binding

浪子不回头ぞ 提交于 2019-12-06 03:06:27
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. Others have found success by calling UpdateLayout() before ScrollIntoView() on a ListBox. Have you tried using AnimateTo() and passing it the last item in the list. Alternatively, you could interrogate the visual tree of the control and access the ScrollViewer of the internal [Templated]ListBox and call ScrollToVerticalOffset . Try setting

How to Sort a LongListSelector in Windows Phone

我的未来我决定 提交于 2019-12-05 16:36:31
I would like to be able to sort the data bound to my LongListSelector either in ascending or descending order. I am having trouble binding the sorted data to my LongListSelector. Originally without trying to implement a sort my solution was working, but I believe that I am missing something when sorting is involved. I have also tried How to Sort a LongListSelector using CollectionViewSource with no luck. What is the best way to sort a LongListSelector? MainPage.xaml <phone:LongListSelector x:Name="Recent" Margin="0,0,0,72" LayoutMode="Grid" GridCellSize="108,108" SelectionChanged="recent

LongListSelector and DataTemplateSelector

扶醉桌前 提交于 2019-12-04 20:06:27
问题 I'm using the LongListSelector to realize List or Grid display for my items. For this, I created a DataTemplateSelector and I change the LayoutMode property at runtime. This is working but there seems to be an issue with the DataTemplateSelector. If I initially launch the page, the DataTemplateSelector is called three times for my three items. When I navigate to another page (settings page to change the LayoutMode) and then back, the DataTemplateSelector is just called two items but there are

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

你离开我真会死。 提交于 2019-12-04 19:39:08
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(NavigationEventArgs e) { string contactId = ""; if (NavigationContext.QueryString.TryGetValue(

How to adjust screen when keyboard open in windows phone 8?

和自甴很熟 提交于 2019-12-04 15:35:11
I am working in Windows phone 8. In One of the pages of my app there is a LongListSelector and under it there is a TextBox . When the TextBox get focused then keyboard is opened. As the keyboard is opened then the LongListSelector is shifted up by keyboard height. If I maintain the margin of the LongListSelector by keyboard's offset then some of the items of LongListSelector go under the keyboard. All I want to do is when keyboard is shown then margin will be updated and the previous focused item of the LongListSelector should not go under keyboard. Here I don't want to use ScrollTo() function

How does one implement pull-to-refresh with a LongListSelector in Windows Phone 8?

半世苍凉 提交于 2019-12-04 14:32:51
问题 I am writing a new WP8 app using the off-the-shelf LongListSelector that is shipped in the Microsoft.Phone.Controls assembly. Can anyone provide a code example that implements pull-to-refresh, originally made popular by Tweetie for iPhone and now common on iOS and Android? The existing examples use non-standard controls and I'd like to maintain my use of LongListSelector in WP8. EDIT I have found a good answer on StackOverflow describing the Twitter sample and how to do this in more detail:

Why does WP8 LongListSelector incorrectly re-use Checked state of CheckBox?

谁说胖子不能爱 提交于 2019-12-04 07:39:11
I have a WP8 LongListSelector with the following template: <DataTemplate x:Key="ItemTemplate"> <Grid Margin="0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="110"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <controls:BlockImageControl Grid.Column="0" Width="110" Height="110" Background="Transparent" /> <TextBlock x:Name="Name" Grid.Column="1" Text="{Binding ScreenName}" FontSize="{StaticResource PhoneFontSizeLarge}" FontWeight="Bold" VerticalAlignment="Center"/> <CheckBox x:Name="Unblock" Grid.Column="2" VerticalAlignment="Center" Tap=

how to make a windows phone app LongListSelecter with Image and strings

隐身守侯 提交于 2019-12-04 06:44:12
问题 i made a simple long list selector app without jump header or header template. i made it after a long journey in to the google and stack overflow. i was satisfied with it. the app contains only text blocks to show names- like first name last name phone number but i need to add photos also what would be the code how to show pictures along with names. i search a lot couldn't get a proper solution here is my code: namespace listparee6 { public partial class MainPage : PhoneApplicationPage { //