microsoft-metro

Making swipe work for a pivot control with embedded WebBrowser on Windows Phone 8.0

*爱你&永不变心* 提交于 2019-12-10 13:48:34
问题 I'd like my application to have a Pivot control with a WebBrowser control in each PivotItem . The problem is that swiping to next PivotItem doesn't work since it instead results in scrolling the web page horizontally. However, the web pages are responsive and doesn't need to be scrolled horizontally so instead I want horizontal swiping to result in a pivot switch. Can this be accomplished? If I can't use a Pivot control what is the recommended way to implement page switching with WebControl s

windows 8 app Share charm hangs on “Getting info from {AppName}”

我们两清 提交于 2019-12-10 13:14:06
问题 var dataTransferManager = Windows.ApplicationModel.DataTransfer.DataTransferManager.getForCurrentView(); dataTransferManager.addEventListener("datarequested", function (e) { var request = e.request; request.data.properties.title = "Share Link Example"; request.data.properties.description = "A demonstration that shows how to add a link (URI) to share."; request.data.setUri(new Windows.Foundation.Uri("http://www.google.com")); }); For some reason, if I click on the Share charm, it just hangs on

how should a metro app cache images for tombstoning (and should it)?

两盒软妹~` 提交于 2019-12-10 12:13:57
问题 I have a c# metro app that downloads a collection of objects that have a property for a uri. This collection is bound to a ListBox with an Image source bound, this works fine. When the app is tombstoning, I want to preserve all app state including the collection and the images that have been downloaded from the internet. Covering the case, the users actions result in the collection being downloaded and displaying correctly they switch away to another app and the my app is terminated. The user

“Guided Access” equivalent

好久不见. 提交于 2019-12-10 11:36:54
问题 I have to develop a windows store app which will be usable on public devices, that means users aren't supposed to be able to quit my application. On iOS devices, an option called "Guided Access" allows to do this easily, buttons are disabled and you can specify an area where user can interact. After some researches, I haven't found a way to do that, it seems that Microsoft has not implemented this option in Windows 8, so I'm looking for a way to do this with some code, directly in my app but

How do I use XAML HexNumbers for Windows Store App icons (Segoe UI Symbol) in databound objects?

青春壹個敷衍的年華 提交于 2019-12-10 11:26:59
问题 I have a basic DataTemplate which I use to bind to the basic objects which expose several properties. These items are displayed in an ItemList . I am trying to ensure that the TextBlock which is bound to Icon , displays the symbol similar to  which would be stored in the object's Icon property. <DataTemplate x:Key="Action180x180ItemTemplate"> <Grid HorizontalAlignment="Left" Width="180" Height="180"> <Border Background="OliveDrab"> <TextBlock Text="{Binding Icon}" FontFamily="Segoe UI Symbol

How to check if a user rated my app

早过忘川 提交于 2019-12-10 10:48:34
问题 I developed a simple free game for Windows 8 Store and now I want to ask my users to give the game a rating and possibly write it a review. How can I check if they already did this (i.e. rated the game or wrote a review), so I do no not ask again? 回答1: Jared has pretty much nailed it. I don't think you can unless there is a Windows Store API that provides that information to your app. The user information and his/her rate and review status and data is stored outside of your app and therefore

Detecting a scroll event in GridView (Windows 8)

旧时模样 提交于 2019-12-10 10:27:34
问题 How do we detect a scrolling event in GridView (like ViewChanged on ScrollViewer) on somethig like the default GridView template sample app? I'd like to replicate the effect that the netflix App does on the left red strip. I tried putting the GridView inside a scrollviewer, but I've been unsuccessful at stretching it to fill the screen for different resolutions. Update: I intend to use this with VariableGrid control that's on NuGet - though it's not an official control, it inherits GridView

How the Deployment.Current.Dispatcher.BeginInvoke work in windows store app?

自作多情 提交于 2019-12-10 10:25:13
问题 i got experience with windows phone 8 and i am using WCF data services, i am able to update my record successfully with following code : public void UpdateJob1(EquipBooking equipBooking) { this._context.UpdateObject(equipBooking); this._context.BeginSaveChanges(OnChangesSaved, this._context); } private void OnChangesSaved(IAsyncResult result) { bool errorFound = false; Deployment.Current.Dispatcher.BeginInvoke(() => { this._context = result.AsyncState as THA001_devEntities; try { // Complete

How to have user prompt dialogs in Windows 8 metro apps?

微笑、不失礼 提交于 2019-12-10 10:11:25
问题 I would like to get some user inputs for my app like Name, DOB, etc from a modal window for this I need a dialog to be displayed which would contain the textboxes and other controls. Normally in WinForms/WPF I would create a class inherited from the Form/Window class and use the Show/ShowDialog method to present the form to the user How do I achieve this behavior in Windows 8 metro apps using XAML/C# ? I have looked at the MessageDialog class under the Windows.UI.Popups namespace but its for

Windows 8 App Cert Kit no longer runs?

人盡茶涼 提交于 2019-12-10 08:06:10
问题 I am trying to do the App Cert check on my Metro app, but it won't run anymore! Anybody else having this same issue? I've searches all over the Internet, with not even a single related result. It ran successfully a few hours ago, but now it just won't run at all. The spinning cursor shows, indicating that it's about to open - but it doesn't. I've tried restarting my computer, opening/closing visual studio, opening/closing my app. It just doesn't run. I've tried running as Admin, I've even