windows-phone

The IsolatedStorageSettings.Save method in Windows Phone: does it save the whole dictionary?

て烟熏妆下的殇ゞ 提交于 2019-12-25 12:11:42
问题 Does the IsolatedStorageSettings.Save method in a Windows Phone application save the whole dictionary regardless of the changes we made in it? I.e. if we have say 50 items in it, and change just one, does the Save method saves (serializes, etc) the whole dictionary again and again? Is there any detailed documentation on this class and does anybody know what data storage format is used "under the hood"? 回答1: I've managed to find the implementation of the IsolatedStorageSettings.Save method in

MediaElement Set position in Pause mode

六眼飞鱼酱① 提交于 2019-12-25 12:07:34
问题 I use this method to seek new position in my MediaElement : TimeSpan t = TimeSpan.FromSeconds(newSecond); System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() => { mediaElement1.Position = TimeSpan.FromSeconds(newSecond); }); When the user play video and then pause it and seek to new position the video frame stay in the previous frame. And i want to know if it possible that when i seek to new position and the video is in pause mode so the frame will move to the new position and won't

MediaElement Set position in Pause mode

前提是你 提交于 2019-12-25 12:06:12
问题 I use this method to seek new position in my MediaElement : TimeSpan t = TimeSpan.FromSeconds(newSecond); System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() => { mediaElement1.Position = TimeSpan.FromSeconds(newSecond); }); When the user play video and then pause it and seek to new position the video frame stay in the previous frame. And i want to know if it possible that when i seek to new position and the video is in pause mode so the frame will move to the new position and won't

How to share an address using StreamSocket?

我只是一个虾纸丫 提交于 2019-12-25 11:57:35
问题 I'm able to pass a text, and it works like a charm! StreamSocketListener streamSocketListener = new StreamSocketListener(); streamSocketListener.ConnectionReceived += streamSocketListener_ConnectionReceived; await streamSocketListener.BindEndpointAsync(hostName, port); It shows the link in the other device's browser. 回答1: Pseudo code: IStorageFile fileToSend = await KnownFolders.PicturesLibrary.GetFileAsync("foo.jpg"); BasicProperties basicProperties = await fileToSend.GetBasicPropertiesAsync

Periodic task concurrency issue with foreground app

风格不统一 提交于 2019-12-25 07:17:16
问题 I am developing a Windows Phone 8 app that would have a live flip tile. I will be creating a scheduled agent (periodic task not resource intensive) which will update the live tile using local data. The whole app does not connect to the internet in any way, it uses only local data. So push notifications are out of the question. I need to update the live tile from the background agent and/or from the foreground app when it's launched whichever happens first. However how can I ensure the

Periodic task concurrency issue with foreground app

无人久伴 提交于 2019-12-25 07:16:20
问题 I am developing a Windows Phone 8 app that would have a live flip tile. I will be creating a scheduled agent (periodic task not resource intensive) which will update the live tile using local data. The whole app does not connect to the internet in any way, it uses only local data. So push notifications are out of the question. I need to update the live tile from the background agent and/or from the foreground app when it's launched whichever happens first. However how can I ensure the

WNS error 0x880403E8 on device

那年仲夏 提交于 2019-12-25 07:04:09
问题 I am developing a WP8.1 silverlight app, that receives WNS notification. It works fine on the emulator, but on the device (lumia 640), it crashes at the following api call: var channel = await Windows.Networking.PushNotifications.PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); I receive the following error: _exception {System.Exception: Exception from HRESULT: 0x880403E8 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System

restrict the windows phone app for specific devices

江枫思渺然 提交于 2019-12-25 05:17:15
问题 i want my application should work on specific devices\OS like "Lumia 650"\"windows phone 8", this is my project requirement. Is it possible ? if yes where should I mention the details ? 回答1: It is not a problem to restrict Windows Phone 8. You just need to build it targeting Windows Phone OS 8.0. For the device model you do something like this in the App.xaml.cs private void Application_Launching(object sender, LaunchingEventArgs e) { var deviceName = DeviceExtendedProperties.GetValue(

How to handle a selected item of LongListMultiSelector?

二次信任 提交于 2019-12-25 05:03:47
问题 I want to be able: to open a mail when the user taps on one item. and delete multiple emails when the user selects multiple emails So I choosed LongListMultiSelector . In built in LongListSelector , I handle the SelectionChanged event like this: private void mails_SelectionChanged(object sender, SelectionChangedEventArgs e) { var selectedItem = mailsLongListSelector.SelectedItem as Mail; if (selectedItem == null) return; ... mailsLongListSelector.SelectedItem = null; } I want exactly like

how to refresh a page in visual studio?

允我心安 提交于 2019-12-25 04:26:37
问题 i have created a windows phone application. In each page i have given a back button using "NavigationService.GoBack()" command. i want that when the back button is pressed the previous page to which it navigate the whole code of that page must again be executed. 回答1: If you're relying the user pressing the hardware back button you shouldn't have to call GoBack() yourself. To refresh a page when the user navigates back to it you can use the following in your page (and add the refresh code as