windows-store-apps

App keeps crashing during certification when using Microsoft Advertising SDK for XAML

廉价感情. 提交于 2019-12-19 10:42:47
问题 In my already published app, I tried adding ADs using “Microsoft Advertising SDK for XAML” (tried adding reference via both NuGet and msi). On my dev machine both debug and release builds work fine, even .appxbundle created as part of packaging works as expected, but the app always crashes at launch for the reviewer when submitted for review/certification (.appxupload file). Note: The app is a Desktop Bridge app. There is a UWP app which communicates with a win32 exe. The call to launch

How to get camera feeds in Windows 8 Metro style app?

折月煮酒 提交于 2019-12-19 10:21:04
问题 I am trying to get camera feeds in Windows 8 metro style app so that i can make some changes on it something like augmented reality. I have tried but only able to find how to capture images using CameraCaptureUI(). Can anyone tell me how can i achieve camera feeds for AR? 回答1: All you need to do is pass in CameraCaptureUIMode.Video for CaptureFileAsync. Here is a sample CameraCaptureUI dialog = new CameraCaptureUI(); dialog.VideoSettings.Format = CameraCaptureUIVideoFormat.Mp4; StorageFile

Can I convert image/bitmap to writeablebitmap?

二次信任 提交于 2019-12-19 10:18:31
问题 I have two bitmap images that i would like to merge together. I found that I can do that with writeablebitmap but how do I first convert these images to writeablebitmaps? UPDATE: I could not find out a way to convert bitmaps to writeable bitmap directly so what I did was to write my bitmap in isolated storage and read it again in a stream object. After which the code given below by Xyroid can be used to merge the images and convert the merged image to bitmap. 回答1: Here I am giving you the

Change background color of selected item in listbox

可紊 提交于 2019-12-19 10:16:13
问题 First I search here and on web and I find many and many solution how change background color of selected item in listbox in WPF but not how do it in windows store app. This framework is litte different I cant get to work any solution. I use this: http://social.msdn.microsoft.com/Forums/windowsapps/en-US/91575930-2058-413a-99de-f3b31c74dfd9/change-itemtemplate-forground-when-listbox-is-focused?forum=winappswithcsharp on the end of page is very good solution but he set item teplate like this:

Reflecting a WinRT executable from a .Net 4.x App

半城伤御伤魂 提交于 2019-12-19 09:47:33
问题 In a console application; If I execute: Assembly.LoadFrom(@"c:\...\MyWinRTApp.exe") I get: System.BadImageFormatException occurred HResult=-2147024885 Message=Could not load file or assembly 'file:///C:\_...\MyWinRTApp.exe' or one of its dependencies. An attempt was made to load a program with an incorrect format. Source=mscorlib Is there any way around this? EDIT 1 In relation to "Vyacheslav Volkov"'s answer below, I now get a step further, thank you. However I now get a different issue.

Post data with a request in a Windows Store app WebView - using C#

偶尔善良 提交于 2019-12-19 09:25:04
问题 I have the following scenario in my app: At first startup, the user can register an account. The app then gets a pair (int user_id, string session_id) from my webserver and stores that data in-app. In my app I use a WebView which lets the user look at some content of my site. Using the user_id and the session_id, he gets logged in automatically (after that, server side session and cookies are created). I did not want to use an url scheme like http://mobile.mysite.com/?user_id=int&session_id

How to cache a page in Windows Phone 8.1

一个人想着一个人 提交于 2019-12-19 08:24:04
问题 Previously in Windows Phone 8.0 apps, we could navigate deeper to the same page this way: NavigationService.Navigate(new Uri("/SamePage.xaml", UriKind.Relative)); Page was cached automatically, so after navigating back, user was on the same position on the list when he left. But in Windows Phone Store Apps we navigate deeper to the same page this way: Frame.Navigate(typeof(SamePage), id); But after navigating back it loads data again so if user was on the middle of a long list, now he is on

How to cache a page in Windows Phone 8.1

北城以北 提交于 2019-12-19 08:21:12
问题 Previously in Windows Phone 8.0 apps, we could navigate deeper to the same page this way: NavigationService.Navigate(new Uri("/SamePage.xaml", UriKind.Relative)); Page was cached automatically, so after navigating back, user was on the same position on the list when he left. But in Windows Phone Store Apps we navigate deeper to the same page this way: Frame.Navigate(typeof(SamePage), id); But after navigating back it loads data again so if user was on the middle of a long list, now he is on

How to change TextBox placeholder text color for a specific element, not global

醉酒当歌 提交于 2019-12-19 06:46:36
问题 MSDN lists the styles and templates for the TextBox class here. I can override these theme resources by creating a ResourceDictionary in App.xaml like this: <Application.Resources> <ResourceDictionary> <ResourceDictionary.ThemeDictionaries> <ResourceDictionary x:Key="Default"> <SolidColorBrush x:Key="TextBoxPlaceholderTextThemeBrush" Color="Yellow"/> </ResourceDictionary> </ResourceDictionary.ThemeDictionaries> </ResourceDictionary> </Application.Resources> but this will affect every TextBox

Windows Store App Design-time DataContext

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 04:57:13
问题 I've been a XAML developer for years now but this one has stumped me. I've been sleeping badly so maybe I'm being dense. Just orientating myself with Windows Store apps, I noticed that the LayoutAwarePage has a DefaultViewModel these days, which is nice but I it gets set only at runtime. Really, we need a DataContext established during design time to see real fake data. So after failing with some more convoluted ViewModel hook-up code, I am down to this and it doesn't work: public sealed