microsoft-metro

No metro project templates in Visual Studio Express 2012 for Desktop?

試著忘記壹切 提交于 2019-12-19 08:54:17
问题 Both of the download pages for for Desktop and for Windows 8 provide the same web installer called: "Visual Studio Express 2012 for Windows Desktop". I installed it and here is its "New Project" window: In this tutorial page, it says I should have templates like this: (source: microsoft.com) How can I get these templates? I'm using Windows 8 x64 RTM. 回答1: You have most likely downloaded wrong Visual Studio Express version, maybe there is broken link on that page. If you want to develop Metro

No metro project templates in Visual Studio Express 2012 for Desktop?

霸气de小男生 提交于 2019-12-19 08:53:16
问题 Both of the download pages for for Desktop and for Windows 8 provide the same web installer called: "Visual Studio Express 2012 for Windows Desktop". I installed it and here is its "New Project" window: In this tutorial page, it says I should have templates like this: (source: microsoft.com) How can I get these templates? I'm using Windows 8 x64 RTM. 回答1: You have most likely downloaded wrong Visual Studio Express version, maybe there is broken link on that page. If you want to develop Metro

Does local storage get deleted when a user updates my app?

删除回忆录丶 提交于 2019-12-19 08:11:08
问题 I have a windows 8 app (Digital Nightstand) in the windows 8 appstore. The app stores user preferences in XML files on the user's machine, also known as local storage. What I want to know is that if I release an update for my app and the users take the update, will the existing stored settings be wiped out? 回答1: The answer is no! Don't worry when user updates an app, the local and roaming folders/settings won't get wiped out. 回答2: The data does not get deleted. But if you release an update

How do I hide virtual keyboard for select element in Win8 JavaScript app?

大憨熊 提交于 2019-12-19 07:10:21
问题 I'm creating a Windows 8 application in JavaScript. I have these html elements in the markup: <input id="myField1" type="number"></input> <select id="myField2"> <option value="one">One</option> <option value="two">Two</option> <option value="three">Three</option> </select> When I tap myField1 on the device without physical keyboard, virtual keyboard appears. After that if I tap on the myField2 , the keyboard remains in place. But I don't want to have typeahead in this particular <select>

Unit Testing Windows 8 Store App UI (Xaml Controls)

时光总嘲笑我的痴心妄想 提交于 2019-12-19 06:03:12
问题 I've been creating a Windows Store App but I have thread problems testing a method which creates a Grid (Which is a XAML Control). I've tried to test using NUnit and MSTest. The test method is: [TestMethod] public void CreateThumbnail_EmptyLayout_ReturnsEmptyGrid() { Layout l = new Layout(); ThumbnailCreator creator = new ThumbnailCreator(); Grid grid = creator.CreateThumbnail(l, 192, 120); int count = grid.Children.Count; Assert.AreEqual(count, 0); } And the creator.CreateThumbnail (The

C# Metro App UI update

假装没事ソ 提交于 2019-12-19 04:51:22
问题 My problem is just the same as this link . I am working on the new WinRT for Metro Applications in C# (win8 release preview). The problem is: My app My program runs a thread in the background which receives messages from the server(In fact, I ported a XMPP client app). Some information should be updated in the UI. I have tried that link. The second method seems would work for me, but I has found there is no Dispatcher.Invoke(...) in the VS2012RC intellisense which means there is no this

custom cursor in metro app

左心房为你撑大大i 提交于 2019-12-19 04:20:07
问题 I am developing a paint like application. I want to change cursor at some instance. So, how can I use the custom cursor in metro app ? I have found this Window.Current.CoreWindow.PointerCursor = new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Custom, uint id); In above method, there is one enum for "Custom" cursor and the second argument is for resource ID. So how can I get that ? 回答1: The basic route to doing this: Create your custom cursor and package it in a .res using a C++

Windows 8 Metro App File Share Access

半腔热情 提交于 2019-12-19 03:16:21
问题 I am developing a Windows 8 Metro app, and we intend to deploy it to only a few tablets within our company. It's not meant for the Windows Store. We need the app to access some directories on the company's network share, but forcing the user to use a FilePicker isn't what we want. Our first attempt was to use await StorageFolder.GetFolderFromPathAsync("J:\\"); . This didn't work, and produced the following exception: An unhandled exception of type 'System.UnauthorizedAccessException' occurred

Not able to navigate to pages on Windows Metro App using c#

你。 提交于 2019-12-18 15:04:24
问题 When my UserLogin page loads, i want to check for user database, and if it doesn't exist, or can't be read, i want to direct it to NewUser page. protected override void OnNavigatedTo(NavigationEventArgs e) { CheckForUser(); if (UserExists == false) this.Frame.Navigate(typeof(NewUser)); } The problem is that it never navigates to NewUser , even when i comment out the if condition. 回答1: Navigate can't be called directly form OnNavigatedTo method. You should invoke your code through Dispatcher

How do you get Angular.js to work in a Windows 8 store app?

女生的网名这么多〃 提交于 2019-12-18 14:48:35
问题 The app runs but Angular data objects are not recognized. Here is the JavaScript error I am getting: Exception was thrown at line 1059, column 11 in ms-appx://28934b41-4dd2-4414-b9a9- a73c11c1b743/js/angular.js 0x800a139e - JavaScript runtime error: No module: ngLocale Exception was thrown at line 4473, column 9 in ms-appx://28934b41-4dd2-4414-b9a9- a73c11c1b743/js/angular.js 0x800a139e - JavaScript runtime error: HierarchyRequestError The program '[5112] WWAHost.exe' has exited with code 1