longlistselector

How to Create Border around LongListSelector SelectedItem

我与影子孤独终老i 提交于 2019-12-04 04:58:20
问题 I would like to create a border around the currently selected item within a LongListSelector , but I am having trouble getting the proper implementation. From referencing http://code.msdn.microsoft.com/wpapps/Highlight-a-selected-item-30ced444 I have tried to follow the sample code by creating a custom Style to manage the selected item change, although I am trying to place a border around an image instead of a textbox. Also, I do have a custom ItemTemplate as my DataTemplate for my

How to Highlight a Selected Item in LongListSelector

旧时模样 提交于 2019-12-04 04:21:02
问题 I would like to simply show a border around the currently selected item in my LongListSelector. I have set an ItemTemplate for my LongListSelector, but I am unsure of how to modify the Border so that only the currently selected item contains a border. MainPage.xaml <phone:PhoneApplicationPage.Resources> <DataTemplate x:Key="ItemTemplate"> <!-- BorderBrush of all items are currently set to PhoneAccentBrush, need only currently selected item! --> <Border x:Name="brd" CornerRadius="10"

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

孤者浪人 提交于 2019-12-03 09:04:36
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: Continuous Pagination with LongListSelector You do not. Pull-to-refresh is not a standard Windows Phone

LongListSelector with list item selection style

…衆ロ難τιáo~ 提交于 2019-12-02 16:41:40
问题 I am working on Windows Phone 8 and i have Longlist selector with few item in it. I am using the below code for highlighting the selected item in the list box.But i want the same effect to be achieved for LongListSelector. How to do it ? <Style x:Key="ListItemSelectorStyle" TargetType="ListBoxItem"> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderThickness" Value="1" /> <Setter Property="Padding" Value="0" /> <Setter Property="HorizontalContentAlignment" Value=

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

半腔热情 提交于 2019-12-02 11:50:39
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 { // Constructor public MainPage() { InitializeComponent(); // Sample code to localize the ApplicationBar /

How to Create Border around LongListSelector SelectedItem

喜夏-厌秋 提交于 2019-12-01 23:27:44
I would like to create a border around the currently selected item within a LongListSelector , but I am having trouble getting the proper implementation. From referencing http://code.msdn.microsoft.com/wpapps/Highlight-a-selected-item-30ced444 I have tried to follow the sample code by creating a custom Style to manage the selected item change, although I am trying to place a border around an image instead of a textbox. Also, I do have a custom ItemTemplate as my DataTemplate for my LongListSelector which manages the size of my bound images and controls a required ContextMenu for each item. For

Hold Event Longlistselector

我是研究僧i 提交于 2019-12-01 22:26:38
问题 Hej I want to create a standard holdevent. When you hold an element, there would appear some options you could chose like a new list. How do you create this, is it just simply done with a popup or is there a smarter way? Extra After finding the answer, see answer below, some nice info is: Put the context creation inside the hold event. Then you can change to different contextmenus depending on the item. You can get the item that was holded by the following private void StackPanel_Hold(object

Windows Phone Mango - ListBox or LongListSelector?

ぃ、小莉子 提交于 2019-12-01 21:06:13
问题 Say if I need to display a list with lots and lots of records, which control is better? Or shall I say, which control has a better scrolling experience? I've seen a lot of people reporting issues on this LongListSelector, is it really too buggy to use? Hope someone can shed some light on this for me. Thanks in adv. Xin 回答1: If you don't need grouping, I wouldn't use the LongListSelector. The virtualization support is easier to use/manage with a regular ListBox. And as of Mango, the ListBox

How to set the the zindex of datatemplate's in a longlistselector

元气小坏坏 提交于 2019-12-01 04:47:46
I have a longlistselector with certain images that i add in this longlistselector. I also change the margins of this image to make the image go up or down and so on. But i want to put this image infront of another image in this longlistselector. I have tried using Canvas.Zindex. I have tried setting it at the grid level, at image level and at the top level of of the longlistselector.() But it still doesn't work. Does anybody have some idea's? You can find my code bellow: <phone:LongListSelector x:Name="SouthLongListselector" VerticalAlignment="Bottom" ItemsSource="{Binding Cards}" Canvas

WP7 Toolkit Update Removed GetItemsInView() from the LongListSelector

喜你入骨 提交于 2019-12-01 02:50:48
问题 With the latest update to the Windows Phone Toolkit they have overhauled the internals of the LongListSelector for the Mango release. One of the changes was removing support for the GetItemsInView() function (it now returns an empty list). This function previously returned a list of items that were currently visible on the screen. I was using this to get a reference to the topmost visible item when navigating away from a page so that I could support recovery after a tombstone by using