windows-phone-8

Display a list in Grid view for windows phone 8

纵饮孤独 提交于 2020-01-05 08:07:37
问题 How Can I display a list in two columns for an application in windows phone 8? items.xaml.cs: public async void Initi() { var itemsManagement = new ItemsManagement(); var itemList = await itemsManagement.GetAllItems(); var templist = from c in itemList.Data orderby c.Name, c.Id ascending select c; NameList.ItemsSource = templist; } items.xaml : <ListBox x:Name="NameList"> <ListBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Path=Name}"> </TextBlock> </DataTemplate> </ListBox

Display a list in Grid view for windows phone 8

微笑、不失礼 提交于 2020-01-05 08:06:26
问题 How Can I display a list in two columns for an application in windows phone 8? items.xaml.cs: public async void Initi() { var itemsManagement = new ItemsManagement(); var itemList = await itemsManagement.GetAllItems(); var templist = from c in itemList.Data orderby c.Name, c.Id ascending select c; NameList.ItemsSource = templist; } items.xaml : <ListBox x:Name="NameList"> <ListBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Path=Name}"> </TextBlock> </DataTemplate> </ListBox

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

Get stream of local image. Windows phone 8

烂漫一生 提交于 2020-01-05 07:34:10
问题 I have image ( /Assets/Cat.png ). I need to get stream of this image. I have tried some ways, but all of them were unsuccessfully. What should i do? 回答1: In order to get the stream of the image use this Stream myStream = App.GetResourceStream(new Uri("Assets/Cat.png", UrKind.RelativeOrAbsolute)).Stream; 来源: https://stackoverflow.com/questions/18310286/get-stream-of-local-image-windows-phone-8

Windows Phone 8 SIM interaction

落爺英雄遲暮 提交于 2020-01-05 06:43:09
问题 Is it possible to interact with the SIM in windows phone 8 development? I did a bit of research all I could find was that there is no api from Microsoft that allows this, but is there maybe a 3d party app someone knows of? I am trying to check if a SIM has been changed in a windows phone. So in android terms : TelephonyManager tm; String sim = tm.getSimSerialNumber(); Thanx 回答1: No , the Windows Phone SDK does not offer capabilities to interact with the SIM card inserted in the device. 来源:

So there is no way to access videos on Windows Phone 8?

倾然丶 夕夏残阳落幕 提交于 2020-01-05 05:43:30
问题 I need to access videos on camera roll and also on Music+Video. but it seems there is no way at all. Here in the documentation says we can use: MediaLibrary library = new MediaLibrary(); But it only can access musics. Can we say I should forget this thing for ever in WP8? 回答1: Unfortunately, there is no way to access videos in Media Library. You have read-write access only to audio and photos. See this answer: https://stackoverflow.com/a/13473349/1029518 回答2: There are a couple answers in the

how to know when Map control was first manipulated?

橙三吉。 提交于 2020-01-05 04:08:13
问题 I am using the Map control in Windows Phone 8. I need to implement a page where user can select his location using the map control. I am trying to know when the app was first manipulated by the user. Some background info: I saw that when the control is shown, it automatically centers the world map, and CenterChanged event is raised. I am not able to understand how ManipulationStarted, ManipulationDelta and ManipulationCompleted work. the first time I drag, ManipulationStarted is not called,

How to save a list of coordinates to isolated storage?

好久不见. 提交于 2020-01-05 04:05:12
问题 I have a GeoCoordinate list that I want to save to storage when the application is closed, but I'm not sure how to save it to storage. I tried saving the list using a helper class found here problem Storing a list of Objects in Isolated Storage but I think my syntax may be wrong in saving it as I'm new to using lists.This is how I tried to save the list. Can anyone point me in the right direction with saving the lit? mycoord = Isolated_Storage_Helper.IsoStoreHelper .SaveList<mycoord>("Storage

Windows phone sdk send email with XNA game engine

只谈情不闲聊 提交于 2020-01-05 02:55:09
问题 I am making a game for my windows phone, using Visual Studio 2012 for Windows Phone and it went good from there, I wrote a few classes, and added assets but I encountered a problem. I wanted to make a bug request / idea method, but no-where could I find where to email with XNA. I searched on Google but it came up with stuff like "How to use XNA game studio" and at the bottom it said stuff like "email us" so I never found it out. Basicley I couldn't find it. Can anyone help me out? 回答1: You