windows-runtime

App Resuming event not firing when the app is resumed in WP 8.1 store app

♀尐吖头ヾ 提交于 2019-12-22 06:15:11
问题 My WP 8.1 store app behaves very strangely. App Resuming event fires as expected when I quickly navigate away and then come back. But If I keep the app in background for some time and when comes back, the app fires the Constructor and OnNavigatedTo events instead of the Resuming event and has the black "Resuming..." screen for a couple of seconds(about 4 seconds).This is an app with a BackgroundAudio task. Even the sample BackgroundAudio app from MS behaves like this. Anyone knows what's

Is it possible to set a subject to the mail app in Windows 8 metro application, if I am using share contract and sharing files?

风流意气都作罢 提交于 2019-12-22 06:11:36
问题 First of all, I am sharing the content from my windows 8 metro application to another app (for example Mailto app) so: Now I am sharing files to mailto app using share contract and sharing files from my application, I wanted to know if: - Can I set the subject to the mailto app to which I am sharing files as an attachement to that mailto app, if so please let me know how can I do this? If not, please let me know what is the work around? 回答1: As of now, it's not possible. Windows 8 recently

Is it possible to set a subject to the mail app in Windows 8 metro application, if I am using share contract and sharing files?

半城伤御伤魂 提交于 2019-12-22 06:11:16
问题 First of all, I am sharing the content from my windows 8 metro application to another app (for example Mailto app) so: Now I am sharing files to mailto app using share contract and sharing files from my application, I wanted to know if: - Can I set the subject to the mailto app to which I am sharing files as an attachement to that mailto app, if so please let me know how can I do this? If not, please let me know what is the work around? 回答1: As of now, it's not possible. Windows 8 recently

Get Albumart in .mp3 file for Windows Store App

有些话、适合烂在心里 提交于 2019-12-22 05:43:08
问题 How can i get the AlbumArt image in the mp3 file? I am developing Windows Store app with c#. MusicProperties class gives me Album name artist name vs. But it cant give me albumart. 回答1: Check out MSDN sample to show thumbnail of any file. It also consists how to retrieve the album art. File and folder thumbnail sample If you want to save the album art check out How to store save Thumbnail image in device in windows 8 metro apps c# UPDATE 1 MediaFile is StorageFile . ImageControl is <Image ...

Can I use Sqlite in a WinRT application (javascript)?

徘徊边缘 提交于 2019-12-22 05:01:09
问题 Is it possible to use a Sqlite database in a windows 8 (winRT) javascript application? What I want to achieve is to download a Sqlite database and store this in local storage before use. I believe some form of local storage is available to javascript based WinRT applications, but I want to know if Sqlite is usable in this scenario. I'm also aware that the .Net implementation of Sqlite uses some win32 calls and I believe these will not be allowed by the windows8 app cerififcation process. 回答1:

WinRT - How to ignore or delete page from navigation history

自作多情 提交于 2019-12-22 04:34:34
问题 I have following situation in my WinRT metro (c# - xaml) application : User launch the application and he or she is not logged in. In the menu bar I have button which navigates them to Shopping cart. It's important to mention that they can click on it regardless of logged in/out status. So I have this : Home Page - > Login Page - > Shopping Cart And everything works great, but when I try press BACK button on my Shopping Cart page I'm navigated back to Login Page, which make sense, because

XAML Binding to property

旧巷老猫 提交于 2019-12-22 04:34:11
问题 I have check box in my XAML+C# Windows Store application. Also I have bool property: WindowsStoreTestApp.SessionData.RememberUser which is public and static. I want check box's property IsChecked to be consistent (or binded, or mapped) to this bool property. I tried this: XAML <CheckBox x:Name="chbRemember1" IsChecked="{Binding Mode=TwoWay}"/> C# chbRemember1.DataContext = SessionData.RememberUser; Code for property: namespace WindowsStoreTestApp { public class SessionData { public static

How WinRT events are interoperate with .NET

折月煮酒 提交于 2019-12-22 04:25:10
问题 In the latest video by Rx team Bart De Smet: Rx Update - .NET 4.5, Async, WinRT I saw that WinRT events exposed to .NET by some really strange metadata, more preciesly - add_ / remove_ pair methods signature: EventRegistrationToken add_MyEvent(EventHandler<MyEventArgs> handler) { … } void remove_MyEvent(EventRegistrationToken registrationToken) { … } It looks really great, allowing unsubscribing from event by "disposing" the registration token (Rx does the same kind of thing, returning

Get English exception message instead of local language

孤者浪人 提交于 2019-12-22 04:08:51
问题 On Windows 8 using Visual Studio 2012 RC on a german system, I get all my Exceptions localized to german, which effectively means I can't google anything useful for them. To solve this, I already used the following to change my IDE to english language: Tools --> Options --> Internetional Settings --> Language --> English Nevertheless, I get my exceptions in the localized german language. I tried changing the ThreadUI Culture in code using this code: Thread.CurrentThread.CurrentUICulture = new

Debug.Assert(false) does not trigger in win8 Metro apps

走远了吗. 提交于 2019-12-22 04:02:16
问题 I notice Debug.Assert does not trigger in Metro apps, however, if the project is a traditional one like Console or WinForm, it does trigger. And yes, I am in Debug mode. Is it a setting not properly set in Visual Studio (11 Beta)? Or Debug.Assert is intended to be disabled in metro apps? I know many exceptions are swallowed during the execution of Metro apps, but Debug.Assert is so handy that I can't think of a reason why it should be disabled. 回答1: It does trigger, look in the Output window.