windows-phone-8

Execute task even in the background [duplicate]

江枫思渺然 提交于 2020-01-02 09:11:53
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to run application in background in Windows Phone? I am investigating Windows Phone 8 SKD for examples on how to create a task (FTP write to be precise) that would be executed periodically even if the application is in the background. The documentation points me to Background Agents because the Background Transfer Service "only supports transfers using HTTP and HTTPS. FTP is unsupported". I have been trying

Execute task even in the background [duplicate]

与世无争的帅哥 提交于 2020-01-02 09:11:44
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to run application in background in Windows Phone? I am investigating Windows Phone 8 SKD for examples on how to create a task (FTP write to be precise) that would be executed periodically even if the application is in the background. The documentation points me to Background Agents because the Background Transfer Service "only supports transfers using HTTP and HTTPS. FTP is unsupported". I have been trying

Windows 10 - VS 2015 - Unable to Start Hyper-V Based Emulators within VMWare Workstation 11 VM

你。 提交于 2020-01-02 08:33:43
问题 I am unable to start any of the the Hyper-V emulators (VS Android Emulator or any of the Windows Phone Emulators) when operating within a VMWare Workstation version 11 virtual machine. Attached is how I have configured my VM underlying BIOS. Also attached is the message I receive when attempting to start any of the emulators. Hyper-V is installed and the Hyper-V management service is installed and started. 回答1: You need to allow nested running of one virtual machine (Hyper-V) inside the other

Deploy self signed XAP to windows phone 8

喜你入骨 提交于 2020-01-02 06:57:11
问题 we developed an app for WP8 and wanted to distribute it internally via a download URL to the XAP file. Steps we have taken so far: Use Makecert.exe to generate a self signed XXX.cer with a XXX.pvk (with no password) Used Pvk2Pfx.exe to create a pfx file which includes the private key (with a password) Used XapSignTool.exe to sign our XXX_Release.xap We also deployed the XXX.cer to the phone device but we still get the error "Can't install company app". After that we tried to generate a

Convert timestamp string to DateTime object in c#

一世执手 提交于 2020-01-02 05:11:13
问题 I have timestamp strings in the following format 5/1/2012 3:38:27 PM . How do I convert it to a DateTime object in c# 回答1: You input string looks like in en-us format, which is M/d/yyyy h/mm/ss tt . You have to use proper CultureInfo instance while parsing: var ci = System.Globalization.CultureInfo.GetCultureInfo("en-us"); var value = DateTime.Parse("5/1/2012 3:38:27 PM", ci); or var ci = new System.Globalization.CultureInfo("en-us"); 回答2: var date = DateTime.ParseExact("5/1/2012 3:38:27 PM",

How to Use ProgressRing in Windows Phone 8

醉酒当歌 提交于 2020-01-02 05:07:07
问题 In referencing http://briandunnington.github.io/progressring-wp8.html for a fun new implementation of a progress indicator, I would like to adapt the ProgressRing control to Windows Phone 8. I am not sure though how exactly to add everything in the MainPage of my application. What I have is as follows MainPage.xaml <phone:PhoneApplicationPage.Resources> <!-- Default style for Windows.UI.Xaml.Controls.ProgressRing --> <Style TargetType="controls:ProgressRing"> <Setter Property="Foreground"

How to extend Internet Explorer's share picker on Windows Phone 8?

允我心安 提交于 2020-01-02 04:31:10
问题 I am stuck now trying to figure out how to enable easy sharing of links from IE to my app. I am trying to figure out how to extend the share picker for Internet Explorer. For example, when running IE on WP8, you can bring up the menu at the bottom and click 'share page'. Inside this menu I would like to add my app as an option. Upon selection I would like for it to send the current page's URL to my app. I found this but the example only extends the photo app's share picker. 回答1: It is not

Simulate pinch gesture in Windows Phone 8 emulator [duplicate]

怎甘沉沦 提交于 2020-01-02 03:44:06
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How can I simulate multi-touch in the Windows Phone 7 emulator? I'm trying to simulate a pinch gesture so I can zoom out in a map, but I can't seem to figure out how?! Seems to me like a rookie problem, but everywhere I've checked they tell me there's supposed to be a pinch button in the toolbar on the right in the emulator. Any ideas? 回答1: The Windows Phone emulator only supports multitouch gestures with a

Wrap a synchronous method into an async one which can be 'waited' upon

試著忘記壹切 提交于 2020-01-02 01:59:17
问题 I have a synchronous call: _context.User.Where((u) => (u.UserID == twitterId && u.Type == UserType.Show)).SingleOrDefault(); That I need to wrap into an async one which I can wait on using the await keyword. How can I achieve this? Thanks. 回答1: You need to wrap your sync call using Task.Run method. var user = await Task.Run(() => _context.User .Where(u => u.UserID == twitterId && u.Type == UserType.Show) .SingleOrDefault()); Keep in mind that EntityFramework in version 6.0 will have async

Implement AddRange on ObservableCollection with proper support for DataBinding

我的未来我决定 提交于 2020-01-01 17:28:11
问题 I would like my own descendant of ObservableCollection to support AddRange method. Here is what I currently have: public class ObservableCollectionPlus<T> : ObservableCollection<T> { public void InsertRange(IEnumerable<T> items) { this.CheckReentrancy(); foreach (var item in items) Items.Add(item); var type = NotifyCollectionChangedAction.Reset; var colChanged = new NotifyCollectionChangedEventArgs(type); var countChanged = new PropertyChangedEventArgs("Count"); OnPropertyChanged(countChanged