windows-store-apps

SimpleIoC - Type not found in cache: Windows.UI.Xaml.Controls.Frame

安稳与你 提交于 2019-12-22 12:17:10
问题 I am running into the below error the first time my ViewModel is being instantiated by the SimpleIoC. I believe I have setup the container as it should be, but for some reason, I am still getting the below error. Any ideas or assistance would be very much appreciated. Microsoft.Practices.ServiceLocation.ActivationException was unhandled by user code HResult=-2146233088 Message=Type not found in cache: Windows.UI.Xaml.Controls.Frame. Source=GalaSoft.MvvmLight.Extras StackTrace: at GalaSoft

Windows Live SDK doesn't LogOut()

自作多情 提交于 2019-12-22 10:55:51
问题 Microsoft Live ID is now called Microsoft Account. Having said that, let's say I log into Windows 8 as sam@email.com and run an app. That app uses the Live SDK to access my Microsoft Account profile. Before it can do so, however, I must give it explicit permission and log in. So far, perfect. Though I gave the app permission to sam@email.com I want to change it to janet@email.com so I click the app's Logout button which queries LiveAuthClient.CanLogout() from the SDK. Confusingly, the SDK

Why/When may StorageFolder.CreateFolderAsync fail?

房东的猫 提交于 2019-12-22 10:08:48
问题 The documentation for StorageFolder.CreateFolderAsync says: "If you try to create a subfolder in a virtual folder like a library or a file group, this method may fail". That's all, no further details. Does anyone have some deeper knowledge or experience regarding this issue? Why/When/Under what circumstances may creation fail? And what does "fail" mean? An exception is thrown (which one)? Silent failure? 来源: https://stackoverflow.com/questions/14981071/why-when-may-storagefolder

Ref in async Task

若如初见. 提交于 2019-12-22 09:26:56
问题 How I can to pass a reference as a parameter to Async method in Windows Store App ? I'm looking for something like this: var a = DoThis(ref obj.value); public async Task DoThis(ref int value) { value = 10; } But error: Async methods cannot have ref or out parameters Has any another way? Note: I need to pass exactly obj.value. This method would be used by different types of objects, by same type of objects, by one object, but I will pass obj.val_1, obj.val_2 or obj.val_10. All values will be

Equivalent of editable ComboBox in WinRT?

╄→гoц情女王★ 提交于 2019-12-22 09:03:39
问题 The standard (desktop) windows combobox has three styles; Simple, Dropdown, and Drop List. Dropdown works like an edit control and a combobox, whereas Drop List doesn't allow editing. Am I missing something, or does the XAML ComboBox control in a Windows 8 store app only support the Drop List style? I was halfway through implementing something when I ran into this, and the more I look, the more it seems that it just isn't supported. Do I really need to replace the ComboBoxes in my screens

C# wpf scrollviewer not working like windows store app

亡梦爱人 提交于 2019-12-22 08:59:36
问题 I'm currently working on an application using WPF. And I can't but help to notice the difference in ScrollViewer functionality compared to the Windows Store App variant. When I'm at the edge of the screen and the edge of a ScrollViewer and I want to slide so that I'd move away from the edge. I see the windows desktop or menubar (when at the bottom of the screen). Is there a solution to prevent this scroll behaviour from happening? It is rather annoying (and ugly!) when your scrolling till the

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

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 ...

Alternative to ElementName in x:Bind with DataTemplates

此生再无相见时 提交于 2019-12-22 03:59:11
问题 When using traditional {Binding} syntax you could specify element name to point to a specific control on the page, and be able to access its properties. For example if the page is named page you could do: {Binding ElementName=Page, Path=Name} With the {x:Bind} syntax it says With x:Bind, you do not need to use ElementName=xxx as part of the binding expression. With x:Bind, you can use the name of the element as the first part of the path for the binding because named elements become fields

Get Installed win32 application

放肆的年华 提交于 2019-12-22 01:33:05
问题 Is there any way to get installed win32 applications in UWP project?(since in uwp project I am unable to add reference of wmi call and registry).If so how it is achieved ? 回答1: Classical win32 application can get installed win32 applications on the device by reading the registry. But in a store app, in short answer, it cannot. A store app runs in an isolated sandbox and cannot read the system level registry. For details reasons about why store app doesn't support access the registry please