longlistselector

How to highlight the selected item of long list selector in windows phone 8

安稳与你 提交于 2020-01-05 08:06:12
问题 I've developed Windows Phone 8 application. In that I'm using the Long list selector to display items in the list. Everything is fine up till now. When the user clicks on any item of long list selector, I want to highlight that item's background color, so that the user clearly understands that he/she has selected an item. Could you please tell me how to do this in windows phone 8. I'm looking forward for the response. 回答1: http://code.msdn.microsoft.com/wpapps/Highlight-a-selected-item

How to highlight the selected item of long list selector in windows phone 8

落爺英雄遲暮 提交于 2020-01-05 08:04:10
问题 I've developed Windows Phone 8 application. In that I'm using the Long list selector to display items in the list. Everything is fine up till now. When the user clicks on any item of long list selector, I want to highlight that item's background color, so that the user clearly understands that he/she has selected an item. Could you please tell me how to do this in windows phone 8. I'm looking forward for the response. 回答1: http://code.msdn.microsoft.com/wpapps/Highlight-a-selected-item

How to change the CheckBox and CheckBox tick's color in LongListMultiSelector? WP8

青春壹個敷衍的年華 提交于 2020-01-04 07:18:47
问题 Is it possible to change the CheckBox and CheckBox tick's color in LongListMultiSelector. I've tried George Nikolaides solution but I was not able to approach what I needed. Is there any other way to do this? Please can somebody explain this in a little bit more detail? if it's possible. Thanks in advance, The following is George Nikolaides solution: Can I change CheckBox color in LongListMultiSelector? WP8 回答1: Remember to have xmlns:toolkit and xmlns:toolkitPrimitives defined like so:

wp8 LonglistSelector AnimateTo

本小妞迷上赌 提交于 2020-01-03 15:57:04
问题 I want to scroll to the last item on my longlistselector in WP8, using animation. I can see that in wp7, LongListSelector had a AnimateTo method. Now it does no longer. Any advice of how to animate scrolling? Thanks 回答1: This is not currently possible due to the way the new LongListSelector is implemented. If you really need this animation, you should put your custom content in a ScrollViewer instead (note that you will lose virtualization and other benefits from doing this, so consider

wp8 LonglistSelector AnimateTo

元气小坏坏 提交于 2020-01-03 15:56:02
问题 I want to scroll to the last item on my longlistselector in WP8, using animation. I can see that in wp7, LongListSelector had a AnimateTo method. Now it does no longer. Any advice of how to animate scrolling? Thanks 回答1: This is not currently possible due to the way the new LongListSelector is implemented. If you really need this animation, you should put your custom content in a ScrollViewer instead (note that you will lose virtualization and other benefits from doing this, so consider

LongListSelector different item template for first and last item

半腔热情 提交于 2019-12-29 08:03:42
问题 Im writing my Windows phone 8 app which uses LongListSelector to display some data. How to set different item template for first and last item in LongListSelector? Basically I just want to display same information in every item but use little different item "layout" in last and first item. 回答1: You could implement some kind of data template selector to help in determining which template to select based on index. You can start off by creating a reusable abstract TemplateSelector class. I used

Slow storyboard animation inside LongListSelector

你。 提交于 2019-12-24 03:07:35
问题 I have a LongListSelector which is populated with some items. Each item has a submenu which can be visible or collapsed using a sliding animation. The problem is that the animation is extremely slow depending on which item you tap in the list. At the start and the end it's slow, in the middle it's smooth. I suspect that each animation frame invalidates the longlistselector which means the entire visual tree must update it's layout. I use a datatrigger to start the animation. Because of that I

Save scroll position of LongListSelector control in Windows Phone 8

人走茶凉 提交于 2019-12-24 02:04:55
问题 I need to save LongListSelector position in order to restore it once I get back to the page. First I used GetItemsInView with WP7 and it works great. Then with WP8 it was gone and I have to use ItemRealized. It also works fine but I have side effect which that ItemRealized gives me the item which is at the bottom of current page (it could be even not visible yet). But what I need is to scroll to the item at the top of the page. I could subtract manually items which are visible (by calculating

Can I change CheckBox color in LongListMultiSelector? WP8

走远了吗. 提交于 2019-12-24 00:14:52
问题 I need to change the color for the LongListMultiSelector's CheckBox in Windows Phone 8, because my background is white, this is possible? Thanks. 回答1: In order to do that you have to first edit the ItemContainerSyle by right clicking on the longlistselector from document outline in visual studio and then choose Edit Additional Style -> Edit ItemContainerSyle -> Create Empty Then you have to replace the setters for the generated template with the original setter code from codeplex. the

Grouped LongListSelector: headers appear, items don't

半腔热情 提交于 2019-12-23 20:22:02
问题 WinPhone 8 project in C#. I'm trying to populate a grouped list. The group headers appear, the items don't. The relevant code is: class MyPage { public class Group : IGrouping<string, string> { public string Title{get;set;} public string[] Items; public string Key { get { return Title; } } public IEnumerator<string> GetEnumerator() { return (Items as IEnumerable<string>).GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return Items