windows-store-apps

Large images with Direct2D

别说谁变了你拦得住时间么 提交于 2019-12-19 03:59:30
问题 Currently I am developing application for the Windows Store which does real time-image processing using Direct2D. It must support various sizes of images. The first problem I have faced is how to handle the situations when the image is larger than the maximum supported texture size. After some research and documentation reading I found the VirtualSurfaceImageSource as a solution. The idea was to load the image as IWICBitmap then to create render target with CreateWICBitmapRenderTarget (which

How play a .mp3 (or other) file in a UWP app?

爱⌒轻易说出口 提交于 2019-12-18 22:35:12
问题 I try this: PlayMusic = new MediaElement(); PlayMusic.AudioCategory = Windows.UI.Xaml.Media.AudioCategory.Media; PlayMusic.Source = new Uri(@"C:\Users\UserName\Desktop\C:\Users\user\Desktop\Kill The Alarm - Begin Again.mp3"); PlayMusic.Play(); No more error messages appear on the display (try catch runs clean through). Sorry for the short description... I can read and understand English very well but it is difficult for me to talk and write. 回答1: Every Windows Store App has three folders. A

How play a .mp3 (or other) file in a UWP app?

做~自己de王妃 提交于 2019-12-18 22:34:51
问题 I try this: PlayMusic = new MediaElement(); PlayMusic.AudioCategory = Windows.UI.Xaml.Media.AudioCategory.Media; PlayMusic.Source = new Uri(@"C:\Users\UserName\Desktop\C:\Users\user\Desktop\Kill The Alarm - Begin Again.mp3"); PlayMusic.Play(); No more error messages appear on the display (try catch runs clean through). Sorry for the short description... I can read and understand English very well but it is difficult for me to talk and write. 回答1: Every Windows Store App has three folders. A

Smart App Banners; Windows Store app HTML meta tag equivalent for Android/Google Play?

我们两清 提交于 2019-12-18 21:49:29
问题 Smart App Banners are a recent addition for iOS devices in iOS 6. It involves the simple addition of a meta tag that when visited with Mobile Safari checks for the existence of an App on the phone and shows options for whether the visitor wants to launch or install the App. <meta name="apple-itunes-app" content="app-id=myAppId, affiliate-data=myAffiliateData, app-argument=myArgs" /> Windows Store app linking works similarly: <meta name="msApplication-ID" content="myAppId" /> <meta name=

Getting mysterious build error after upgrading solution to Windows 8.1

折月煮酒 提交于 2019-12-18 18:51:15
问题 I have used windows store apps 8.0 in my project and upgraded it to be 8.1. And also upgraded Visual Studio from 2012 to 2013. First, I got an error that cannot use the Microsoft.VCLibs Version 11.0 and 12.0. So I removed the 11.0 version. And then I got this errors: I tried to find some information on the internet, but nothing. Also when I double clicked on the error it doesn't bring me to the error's spot. I have tried to do many things, and nothing helped, so I decided to write this post.

Centering selected item in a scroll viewer

流过昼夜 提交于 2019-12-18 17:29:10
问题 I am trying to center a selected item in a ListView inside a ScrollViewer and struggling to calculate the vertical offset that I should be setting the ScrollViewer relative to the ListView. The following links set me on the right track, but because of the limitation of the WinRT API, was not able to use them: Make ListView.ScrollIntoView Scroll the Item into the Center of the ListView (C#) http://blogs.msdn.com/b/delay/archive/2009/04/19/fewer-gotchas-to-getcha-enhancing-the

How to Determine Which Dll Dependency is Failing to Load in Windows Store/Universal Apps?

旧城冷巷雨未停 提交于 2019-12-18 13:11:45
问题 When running a UWP project I'm working on I receive the following dialog. "Unable to activate Windows Store app 'MyAppsMangledName'. The 'MyExeName' process started, but the activation request failed with error 'The App didn't start'." The Visual Studio output has the following. The thread 0x3d4c has exited with code -1073741515 (0xc0000135). The thread 0x3b50 has exited with code -1073741515 (0xc0000135). The program 'MyExeName' has exited with code -1073741515 (0xc0000135) 'A dependent dll

Is there a global exception handler in Windows store apps?

泄露秘密 提交于 2019-12-18 12:53:07
问题 For unhandled exceptions, at least, I'd like to be able to catch the details and write them out to a file for potential subsequent "debugging forensics." There is no "OnTerminating" event in Windows store apps; is there a suitable place/way to accomplish such? UPDATE See my comment below. Here is an addition that won't fit below: Even when removing the xaml snippet, I still get that err msg, and even after Cleaning and Rebuilding...??? 2-clicking the err msg just takes me to the top of App

Windows App Store - Stretched icon

孤者浪人 提交于 2019-12-18 12:29:31
问题 I'm having a small problem with the windows store. I have uploaded all the required graphics in the submission, and the app has all of the required graphics (including box and wide tile images). In the store however, the app entry is using a wide image. The problem is that the wide image it's using is actually a box image , that's stretched. Any ideas what's going wrong? 回答1: I've been in touch with Microsoft support regarding this bug. It was fixed just two days ago. You just need to upload

Show view from non-view/viewmodel in mvvmcross

不问归期 提交于 2019-12-18 12:24:30
问题 What is the correct way to open a View in mvvmcross from a non-view? From within a viewmodel we would use ShowViewModel<>(..). Specifically we are responding to a push notification opening the app (with a custom payload) which dictates a view that should be loaded. We have a hackety workaround just for proof of concept, just wanted to get an idea of the correct MVX approach 回答1: I don't think there is a 'correct way' - I think it depends on your app and what you need it to do. For some