windows-runtime

Why is PayPal not working inside a WinRT WebView control

杀马特。学长 韩版系。学妹 提交于 2019-12-07 19:14:05
问题 I am writing a Windows 8 app where the user is able to do in-app purchases. Our Client provides us with a REST API. Basically I get product information from this REST API and if the user chooses to buy a product I tell the REST API to start a transaction. As a result I am receiving a PayPal URL for the payment transaction. I am navigating to that URL using the WebView control that is built into the WinRT. Unfortunately the PayPal website does not behave properly in the WebView control. When I

Debugging a Windows Phone 8.1 Unit test (Visual C++)

家住魔仙堡 提交于 2019-12-07 18:58:08
问题 The issue is that I have created an Universal App for Windows 8.1 and Windows Phone 8.1 choosing in the wizard Visual C++ -> Store Apps -> Universal Apps -> Windows Runtime Component. So to test its behaviour we have created a Windows Phone 8.1 Unit test project (also Visual C++) where we add as reference the Universal App project, and also in the project properties in the tab Configuration properties -> C/C++ -> General, in Additional include directories I referenced the Universal App

Doing localization in visualstatemanager by changing x:uid?

社会主义新天地 提交于 2019-12-07 18:50:28
问题 I am adding localization to my UWP app by adding x:uid tags to all of my elements and using the multilingual toolkit. However I've run into an issue where in one case I change the text itself in the narrow view using the visualstatemanager. How can I do this in a localized app? My first thought would be to change the uid of the element to the new match the new text, I'm not sure it's possible. Here is an example of what I'd like to do, but doesn't work: <textblock x:Name="DescriptionTextBox"

Unable to navigate to page after extended splash in Windows 8 application

隐身守侯 提交于 2019-12-07 18:50:24
问题 I've created extended splash screen following guide offered by Microsoft. The screen shows off, data loads, but then the app doesn't navigate to landing page. How is this possible? ExtendedSplash.xaml.cs public sealed partial class ExtendedSplash { public ExtendedSplash(SplashScreen splash) { this.InitializeComponent(); // Position the extended splash screen image in the same location as the splash screen image. this.extendedSplashImage.SetValue(Canvas.LeftProperty, splash.ImageLocation.X);

Pin tile to selected position on Startscreen (programmatically) Windows 8

浪尽此生 提交于 2019-12-07 17:37:13
问题 I am searching a solution to pin an installed app or desktop application to the windows 8 startscreen. I have figured out to do this like it is described in this post before There has also been a long disscusion about this problem But there was no answer to my question: How can I pin a new tile to a selected position on the startscreen? If I install a new app/application windows 8 pins the new application at the end of the Startscreen. (windows 8.1 does not) But if I want to place the tile f

identify user accross WP8 and Win8: ANID2 vs SafeCustomerId

早过忘川 提交于 2019-12-07 17:23:18
问题 We have a web service that needs to indentify a user accross his devices, wp8, and win8. On the phone side we have UserExtendedProperties.GetValue("ANID2") , which get's the anonymous microsoft id. On Windows8 there's OnlineIdAuthenticator.AuthenticateUserAsync with UserIdentity.SafeCustomerId and other properties, though none of them look like the ANID2. The OnlineIdAuthenticator api exists on phone, but throws NotImplementedException. Is there any way to get a common user identifier on win8

Metro APP - BitmapImage to Byte[] or Download Image from Web and convert it to a Byte[] Array

巧了我就是萌 提交于 2019-12-07 16:55:19
问题 Is there a way to convert a BitmapImage (Windows.UI.Xaml.Media.BitmapImage) to an Byte[] Array? Nothing I've tried work.... Another possible scenario (if BitmapImage cannot be converted to Byte array) is to download the image from web and then convert it to an array... But I don't know how I can do that... It would be really nice, if someone have an idea. Current try: HttpClient http = new HttpClient(); Stream resp = await http.GetStreamAsync("http://localhost/img/test.jpg"); var ras = new

Is FluidMoveBehavior available?

坚强是说给别人听的谎言 提交于 2019-12-07 15:32:54
问题 I have calls to Grid.SetRow and Grid.SetColumn in my code which I'm trying to animate. According to the answer at http://social.msdn.microsoft.com/Forums/en-CA/wpf/thread/257779f7-b459-43fc-a4a1-f24641c50e09, it is recommended to make use of FluidMoveBehavior, but it doesn't look like this is available for Windows 8. What are my options for animating the children of a Grid when their positions change? I'm basically looking for a way to achieve linear transition. 回答1: There is a new built-in

Grid.IsSharedSizeScope equivalent for Windows 8

坚强是说给别人听的谎言 提交于 2019-12-07 13:38:40
问题 Is there any kind of simple (non-custom-coded) equivalent to WPFs Grid.IsSharedSizeScope in Windows 8/RT XAML? I have ListViewItem s that are divided into 3 horizontal sections and those 3 columns need to be aligned (to the widest width each) to all the bound ListViewItem . 回答1: Since that was for wpf I found a Metro solution to the problem. Ill paste the entire code in here. :) <Page.Resources> <DataTemplate x:Key="DataTemplate1" > <Grid HorizontalAlignment="Stretch" VerticalAlignment=

ICMP Ping in WinRT - Is it possible? [duplicate]

本小妞迷上赌 提交于 2019-12-07 13:21:57
问题 This question already has an answer here : Is it possible to write a Ping class in C# that will run within Windows 8 Metro environment? (1 answer) Closed 6 years ago . How to do an ICMP ping in a WinRT Modern UI application? Ping is not implemented in WinRT currently (see related question here) and the previous strategies in Silverlight being: Use a WCF Service Call Javascript which then calls an ActiveX component Give up (here) Vasily here uses http to 'ping' a webserver on a specific port