longlistselector

Windows phone 8 Images inside LongListSelector memory leak

孤人 提交于 2019-11-30 16:28:36
I have a LongListSelector which contains a image control which loads a lot of images from the web, this works fine for some time, but after i loaded some images i get out of memory exception. I read other people having the same issue regarding out of memory with a lot of images but still haven't found a solution. I have read that it has something to do with image/BitmapImage cache. Here is my LongListSelector which contains the image control: <phone:Pivot Title="MY APPLICATION"> <!--Pivot item one--> <phone:PivotItem Header="Browse"> <Grid> <phone:LongListSelector Name="llsGameList"

Binding data in LongListSelector

无人久伴 提交于 2019-11-29 13:01:36
I am referring to the example here : http://dotnet.dzone.com/articles/using-longlistselector-control Here is my code : public class Chapters { private string mainTitle; public string MainTitle { get { return mainTitle; } set { mainTitle = value; } } private List<string> subTitle; public List<string> SubTitle { get { return subTitle; } set { subTitle = value; } } } private static IEnumerable<HighwayCode> GetCityList() { return myList; // Which already contains data: MainTitle : Chapters subtitle : ABC subtitle : X MainTitle : Chapters Two subtitle : ASDF subtitle : GHIJK } public class

WP8 Highlight SelectedItem LongListSelector

喜夏-厌秋 提交于 2019-11-28 02:11:19
my concern is to highlight a selected item in my LongListSelector when the user taps on it. I tried this solution: http://code.msdn.microsoft.com/windowsapps/Highlight-a-selected-item-30ced444#content But i still have a problem. In my project, the LongListSelector is filled up with 90~100 items and if i tap on the x th element, the (x+20) th , the (x+40) th , the (x+60) th , the (x+80) th ... get highlighted too. How is that possible? What does cause this? I tried to debug, and what i noticed is that "userControlList" (see the MyLongListSelector1_SelectionChanged event handler by following the

How to populate LongListSelector

三世轮回 提交于 2019-11-27 23:21:02
I'm starting out with C# Windows Phone 8 development and I am trying to write an app which uses a LongListSelector. The app will show a long list of train station names. I have been looking at some of the samples online, including the MSDN PeopleHub, and PhotoHub samples but they seem very complex. I took the PeopleHub sample and hacked at it a bit until I got it to display a list of stations in a LongListSelector but I wasn't able to find out which item had been selected in the list. The SelectedItem property was just returning the app name when passed to another page and not which item had

LongListSelector: Item tap?

随声附和 提交于 2019-11-27 12:02:49
I am using LongListSelector control on Windows Phone 8 and can't figure out the best way to handle a tap on an item. The few examples I've found rely on the SelectionChanged event. However, this solution is buggy because if I tap an item that opens a new page, hit back, and then tap the same item again, it won't work because this item is already selected, so SelectionChanged is not triggered. I tried to register to the tap event and use the current selected item as the tapped one, but some times the current selected item is not the one I expect. I could wrap my ItemTemplate in a button and

WP8 Highlight SelectedItem LongListSelector

一笑奈何 提交于 2019-11-26 23:38:40
问题 my concern is to highlight a selected item in my LongListSelector when the user taps on it. I tried this solution: http://code.msdn.microsoft.com/windowsapps/Highlight-a-selected-item-30ced444#content But i still have a problem. In my project, the LongListSelector is filled up with 90~100 items and if i tap on the x th element, the (x+20) th , the (x+40) th , the (x+60) th , the (x+80) th ... get highlighted too. How is that possible? What does cause this? I tried to debug, and what i noticed

LongListSelector: Item tap?

吃可爱长大的小学妹 提交于 2019-11-26 22:21:31
问题 I am using LongListSelector control on Windows Phone 8 and can't figure out the best way to handle a tap on an item. The few examples I've found rely on the SelectionChanged event. However, this solution is buggy because if I tap an item that opens a new page, hit back, and then tap the same item again, it won't work because this item is already selected, so SelectionChanged is not triggered. I tried to register to the tap event and use the current selected item as the tapped one, but some

How to populate LongListSelector

自古美人都是妖i 提交于 2019-11-26 21:26:13
问题 I'm starting out with C# Windows Phone 8 development and I am trying to write an app which uses a LongListSelector. The app will show a long list of train station names. I have been looking at some of the samples online, including the MSDN PeopleHub, and PhotoHub samples but they seem very complex. I took the PeopleHub sample and hacked at it a bit until I got it to display a list of stations in a LongListSelector but I wasn't able to find out which item had been selected in the list. The