windows-8

Can I develop software for Microsoft Surface on Windows 7 machine

我是研究僧i 提交于 2019-12-18 09:02:53
问题 I want to develop a WinRT app for Surface. There is one detail I cannot find anywhere. Will I be able to compile and run on the device using Windows 7 or I need to upgrade to Windows 8? 回答1: No, you can't develop an RT "Modern" style app on Windows 7. You'll need Windows 8 either installed as your main OS or hosted in a VM. 回答2: It is possible to develop with virtual machine(Win8) in windows 7 unfortunately if you want to develop without virtual machine you have to upgrade it 回答3: Not

WinJS.xhr local network error

醉酒当歌 提交于 2019-12-18 08:47:09
问题 I am trying to make a simple windows 8 app but I have a problem. When I try to make a xhr request to a local webserver it fails with the error code: 0x2efd Sample code: WinJS.xhr({ url: "http://192.168.0.30" }).then( function completed(response) { //var json = JSON.parse(response.responseText); //var list = new WinJS.Binding.List(json.results); console.log(response.responseText); }, function error(error) { console.log(error) }, function progress(progress) { } ); But when I try a remote IP for

Cannot implicitly convert type 'System.EventHandler' to 'System.EventHandler<object>' for storyboard complete

∥☆過路亽.° 提交于 2019-12-18 08:29:36
问题 I have read already a few threads about this, but I still don't know how to solve it in my case. I come from Java and mostly new to C# I want to attach listener when animation finishes: myStoryBoard.Completed += new EventHandler(onMyStoryBoardCompleted); And: private void onMyStoryBoardCompleted(object sender, EventArgs e) { } And I get the error in the title. I tried: myStoryBoard.Completed += new EventHandler<object>(onMyStoryBoardCompleted); But then I get: no overload for

Cannot implicitly convert type 'System.EventHandler' to 'System.EventHandler<object>' for storyboard complete

China☆狼群 提交于 2019-12-18 08:29:06
问题 I have read already a few threads about this, but I still don't know how to solve it in my case. I come from Java and mostly new to C# I want to attach listener when animation finishes: myStoryBoard.Completed += new EventHandler(onMyStoryBoardCompleted); And: private void onMyStoryBoardCompleted(object sender, EventArgs e) { } And I get the error in the title. I tried: myStoryBoard.Completed += new EventHandler<object>(onMyStoryBoardCompleted); But then I get: no overload for

Visual Studio 2012 failed to create project

守給你的承諾、 提交于 2019-12-18 07:45:15
问题 I just upgraded to windows 8 from windows 7. Visual studio 2010 broke down completely. Oh well. I removed vs2012 and installed visual studio 2012, where the pain starts. I have been reinstalling vs 2012 a couple of times. However, the symptom remains the same. When I try to create a new project (FILE -> New -> Project or ctrl + N) . It pops up with an error message dialogbox saying "Failed to create a ImageSource from the text '..\Images\Medium.png'. " I am like @#*%&^@*#@# (. So can anyone

Perform live video stream processing from CaptureElement & MediaCapture

独自空忆成欢 提交于 2019-12-18 07:15:23
问题 In my Windows 8 Store Application, I tend to perform live video stream processing (Face detection for example). Technique 1 In my previous Windows 7 application, I was able to use the following technique (Camera Face Detection in C# Using Emgu CV (OpenCV in .NET) and WPF) to perform live video processing. The technique was, having a fixed period timer callback, to actively query image buffer from camera object . void timer_Tick(object sender, EventArgs e) { Image<Bgr,Byte> currentFrame =

How to create WriteableBitmap from BitmapImage?

十年热恋 提交于 2019-12-18 06:13:38
问题 I could create WriteableBitmap from pictures in Assets. Uri imageUri1 = new Uri("ms-appx:///Assets/sample1.jpg"); WriteableBitmap writeableBmp = await new WriteableBitmap(1, 1).FromContent(imageUri1); but, I can't create WriteableBitmap from Pictures Directory,(I'm using WinRT XAML Toolkit) //open image StorageFolder picturesFolder = KnownFolders.PicturesLibrary; StorageFile file = await picturesFolder.GetFileAsync("sample2.jpg"); var stream = await file.OpenReadAsync(); //create bitmap

Custom Plugin for PhoneGap Windows8 that will call c# code

﹥>﹥吖頭↗ 提交于 2019-12-18 05:23:09
问题 I want to develop an application that will display sensor data in both windows8 and android. I'm using phoneGap for some sensors, but, for example, barometer, there is no implementation in phoneGAP. I want to develop a plugin for cordova-windows8. but there is no example in the web for how to do it. I want to call c# function that uses Microsoft.codePack API for sensors in order to display the barometer data. the ApiCodePack uses windows 7 API for sensors. http://archive.msdn.microsoft.com

where is blend for visual studio 2012

回眸只為那壹抹淺笑 提交于 2019-12-18 04:35:11
问题 I see a lot of refs to something called 'blend for visual studio' which I understand a W8 version of blend. I have VS2012 Ultimate installed on W8 and I don't see any blend. I looked into my MSDN Pro subscription and I don't see neither separate Blend for VS2012 download not VS2012 with Blend download.. How do I get it? 回答1: It is one of the install options that you pick when you do the install (or at least it was in 2012 Professional). You should be able to get it by going Add/Remove

How are normal people supposed to persist settings in a Windows Phone 8 app?

对着背影说爱祢 提交于 2019-12-18 04:32:06
问题 I'm in the process of writing a Windows Phone 8 app, so I can capture that much sought-after 3% market share, and am having a hard time persisting user settings within the application. I first ran across this blog which goes over the basics of the Windows.Storage namespace, which is intended to do exactly this sort of thing. Yay! However, I guess the author never actually ran his own code, as otherwise he would know that the second you call ApplicationData.Current.LocalSettings , you'd get a