windows-rt

How to automate non-interactive tests on Microsoft Surface

我只是一个虾纸丫 提交于 2020-01-03 10:55:21
问题 We have a suite of tests (test cases for a native library) that we want to run on Microsoft Surface (ARM version). It is easy to do it by hand from Visual Studio. However, we would like to automate the process in a way that we can compile, install, run and collect the output from command line (e.g. from Jenkins CI). On iOS there is Fruitstrap that emulates XCode to do similar task for iOS. Is there a Microsoft/third-party tool that could help us do this for Surface? The question about

Image being saved from canvas is not rendered properly

白昼怎懂夜的黑 提交于 2020-01-02 08:11:14
问题 I'm trying to use the following code to save the contents of myCanvas as an image file in the gallery (for Windows Phone 8.1, not Silverlight). When I run the App, the image is saved but it is distorted. What am I doing wrong? I have uploaded the resultant image and the expected result. public async void SaveFileToPhone() { var file = await KnownFolders.PicturesLibrary.CreateFileAsync("bug.png", CreationCollisionOption.GenerateUniqueName); await SaveVisualElementToFile(myCanvas, file); }

Image being saved from canvas is not rendered properly

谁说我不能喝 提交于 2020-01-02 08:11:05
问题 I'm trying to use the following code to save the contents of myCanvas as an image file in the gallery (for Windows Phone 8.1, not Silverlight). When I run the App, the image is saved but it is distorted. What am I doing wrong? I have uploaded the resultant image and the expected result. public async void SaveFileToPhone() { var file = await KnownFolders.PicturesLibrary.CreateFileAsync("bug.png", CreationCollisionOption.GenerateUniqueName); await SaveVisualElementToFile(myCanvas, file); }

IValueConverter and Visibility

夙愿已清 提交于 2019-12-24 02:18:45
问题 I have an application with 3 comunicationstates: Connected, Disconnected and Pending. The communication state are controled by some other paramers. I want to display the corresponding image on the screen controlled by an IValueConverter. But I cant get it to work. Heres is my Xaml code for includeing the 3 images : <Image x:Name="connectedImage" Visibility="{Binding ConnectionWithServerEstablished, Converter={StaticResource communitationStateToVisibilityConverter}, ConverterParameter

Generating ARM code for a managed assembly on an Intel machine

若如初见. 提交于 2019-12-20 05:24:12
问题 Directly related to this question. Given a managed assembly for Windows Phone, how can I generate native code for it for an ARM CPU? I don't have a Windows/ARM device (neither tablet nor a phone). There's the ngen utility out there, but AFAIK it can only generate code for the host machine (i. e. Intel). The reason why I'm asking, the offsets in the crash stack that Windows Phone Dev Center provides are not MSIL offsets (I've checked - they go way beyond MSIL function size). Those look like

How to Implement In-App Purchases in Windows 10 Apps?

為{幸葍}努か 提交于 2019-12-18 13:19:48
问题 I want to integrate in-app purchasing in my windows universal app. I do the following thing before coding. Make App on Windows Dev Center Add products with details in IAPs section and submit to Store as you can see in Image After that I use the following code in my app to get list of products of In-App purchasing and button to purchase product. I also used CurrentApp instead of CurrentAppSimulator in my code but it goes in exception. private async void RenderStoreItems() { picItems.Clear();

What is the user agent string for surface rt?

青春壹個敷衍的年華 提交于 2019-12-18 11:43:19
问题 I'm trying to determine the user agent string for surface RT for testing purposes. 回答1: Just do some Google'ing and you will find your answer. Internet Explorer 10 User-agent string Internet Explorer 10 on Windows RT: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; ARM; Trident/6.0) Update after comment below The link above also states: Identifying touch-enabled systems Internet Explorer 10 introduces the "Touch" UA string token. If this token is present at the end of the UA string, the

WPF .exe application file is not working in Windows 8 surface Tablet

a 夏天 提交于 2019-12-13 00:54:50
问题 Am new to WPF .Previously was worked with Windows 8 /Windows phone application developer. I created a List application using ListBox in WPF. Since i wanted to test the application on a touch device i tried to run it's .exe file on my Windows 8 Surface tablet. I could not run my application. Can't I run WPF application on Windows 8 tablet? Currently am working & running it using a Windows 8 PC , Where it runs. Please provide any information regarding this. Or how we can create my application's

Closing the Windows 8 Charm Bar

♀尐吖头ヾ 提交于 2019-12-12 08:13:37
问题 I have a Surface Pro that I need to "lock down" as a type of Kiosk mode. I am aware that an update is on its way for "Kiosk Mode".. however I need to do this before that. I have searched all over the internet, but it appears that you cannot disable the Charm bar from a swipe on the screen . I have found ways to disable trackpads.. but unfortunately, since this tablet will be used without a keyboard, I need to disable the Charm bar. My new thought is to move the entire Charm bar HWND thousands

new LocationTrigger(LocationTriggerType.Geofence) fails with InvalidCastException when registring background task

耗尽温柔 提交于 2019-12-12 03:26:35
问题 I build simple app with usage of geofence api and background task to handle geofence changes. Here is part of code, wich try register background task private async void RegisterBackgroundTask() { const string name = "GeofenceBackgroundTask"; if (BackgroundTaskRegistration.AllTasks.Any(task => task.Value.Name == name)) { return; } var loc = await new Geolocator().GetGeopositionAsync( TimeSpan.FromMinutes(2), TimeSpan.FromSeconds(5)); //needed to trig user acceptance var backgroundAccessStatus