windows-phone-7

Updating a Page after Binding Data to it in WP7

南笙酒味 提交于 2020-01-07 06:37:47
问题 we have code that is getting data from the server,the data is unzipped and parsed then the name of the files along with the icons related to them are supposed to be displayed on the UI, we are using a listbox and trying bind these 2 elements to the listbox, the data is getting bound but we are not able to update the page after binding.` </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <Image Source="{Binding Icon, Mode=OneWay}" Grid.Column="0" HorizontalAlignment="Center" Grid.Row=

How can I correct TouchPanel offset bug with Windows Phone XNA game on WP8 720p devices?

允我心安 提交于 2020-01-07 05:52:37
问题 XNA apps (WP7 or WP7.5 apps) that run on a WP8 720p device will get automatically letterboxed so the 480x800 BackBuffer size stays the same (for compatibility I presume). This would be fine, except there appears to be a bug in the XNA compatibility layer. The TouchPanel reports touch locations that are off by the size of the top letterbox blank area. This has two problems: The user's touches will appear to be off making gameplay and menu navigation difficult. Because it is off in the negative

Cross-ListBox Selects in a Nested ListBox WP7 App

流过昼夜 提交于 2020-01-07 05:36:10
问题 A known "issue" with nesting ListBoxes in a Windows Phone 7 App is that for each parent category their respective child ListBox retains its own SelectedItems list. Well, I have a situation where this is expected behavior, but I'm having issues capturing both the Parent and Child ListBox selected lists. Current Functionality: 1. List item 2. List item 3. Loading of Parent and Child ListBox data is working 4. Multi-select of Parent ListBox items works prefectly 5. Multi-select of Child ListBox

How to filter ListBox

余生颓废 提交于 2020-01-07 05:36:09
问题 the situation is that I have a list with some HubTile(s) in it, is there any way I can filter the ListBox depending on what is written in a TextBox? For the text box I have the code... private void textBoxSearch_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { } } Thanks, all help appreciated! 回答1: Sure, just store the list of HubTiles in a data structure, and when the user enters a search query, do a LINQ query on that list, and reset the list. private List<HubTiles>

Is EmailComposeTask Class already working?

帅比萌擦擦* 提交于 2020-01-07 04:27:06
问题 For example here: http://msdn.microsoft.com/en-us/library/ff769550(VS.92).asp EmailComposeTask emailComposeTask = new EmailComposeTask(); emailComposeTask.To = "user@example.com"; emailComposeTask.Body = "Email message body"; emailComposeTask.Cc = "user2@example.com"; emailComposeTask.Subject = "Email subject"; emailComposeTask.Show(); I read it doesnt work yet. 回答1: I have a real device, and an application in the marketplace - it is definitely working. The reason it doesn't work on an

The Windows Phone Official Sample cannot even compile : Syndication misssing

别等时光非礼了梦想. 提交于 2020-01-07 02:27:06
问题 I tried to compile http://msdn.microsoft.com/en-us/gg266450 But it says It cannot find System.ServiceModel.Syndication I have 2, 3.5, 4 .NET framework installed. In add reference I can see System.ServiceModel and System.ServiceModel.Web version 2 not anything like 3 or 4 so I wonder how I could add that namespace as mentioned here http://msdn.microsoft.com/en-us/library/system.servicemodel.syndication.syndicationfeed(v=vs.95).aspx This is rather incredible that MS has messed with namespaces

Binding Pushpins to Bing Maps in Windows Phone

时光总嘲笑我的痴心妄想 提交于 2020-01-06 19:59:30
问题 So I need some help here - Some tutorials on how to do it. I am trying to create a location page for my app I need to know how to also bind two xml nodes into one for a list of pushpins and then when the user clicks on them it takes the value to another page. I can populate the XML and the map. Below is how i currently get the stops. void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { if (e.Error == null) { if (e.Result != null) { XDocument doc = XDocument

Backstack Tombstone wp7

眉间皱痕 提交于 2020-01-06 19:57:29
问题 I have just finished tombstoning a page in my application when I noticed that I only tombstone the page I am currently viewing, meaning that after I return the pages in the backstack lose all their members and doesn't get tombstoned.. I only find examples on how to tomstone the current page but nothing about tombstoning the backstack pages... What is the elegant way to do this? Just to show How I'm tombstoning: protected override void OnNavigatedTo(NavigationEventArgs e) { if (e

Close App on back button when on certain page

China☆狼群 提交于 2020-01-06 19:45:12
问题 I've done some reading and found that one can only close a windows phone app by throwing an un-handled exception that will close the app. So my question is, how does one do that for the physical back button on the phone? And how does one have the back button close the app only if it's on a certain page ? So the back button would work as normal, but when it eventually falls on a page called 'noBack.xaml' the back button should close the app. EDIT Actually on second thought, even just disabling

Share image in windows phone

邮差的信 提交于 2020-01-06 19:38:28
问题 I am using v7.1 sdk for developing windows phone 8 application ( as my system doesn't support windows 8 so i cant use window phone 8 sdk). I want to share image . In windows phone 8 sdk it is possible using SHAREMEDIATASK but in windows phone sdk v7.1 it is not possible . Now the only solution is to save that image in library and open programmatically, i am doing it like this : MediaLibrary library = new MediaLibrary(); WriteableBitmap wbmp = new WriteableBitmap(canvas1, null); MemoryStream