microsoft-metro

How do you animate navigation in Windows 8 Metro Apps?

依然范特西╮ 提交于 2019-12-23 20:18:44
问题 In Metro apps that use HTML it is recommended to use fragments to navigate to different page (explained here). How can you animate navigation between fragments without writing lots of code? 1) The navigate method is shown in many examples, but doesn't seem to have animation control: WinJS.Navigation.navigate('/html/myNextPage.html'); 2) The is a method WinJS.UI.Animation.enterPage, but do you have to give up navigate's history management to use this? Also the documentation is pretty sketchy

Detect Desktop availability from Metro application (detect ARM, detect Windows RT system)

删除回忆录丶 提交于 2019-12-23 18:23:00
问题 This is a question related to Get OS-Version in WinRT Metro App C# but not its duplicate. Is there any option to detect from a Metro application whether there is the desktop feature available on the system? I understand that detection of the OS version is not supported and that is OK imo. However my metro app needs to know whether there is a Desktop available on the system it is running on. By Desktop I mean extendable desktop - desktop, where 3rd party desktop applications can be installed.

Windows 8 button disappearing when mouse over

我是研究僧i 提交于 2019-12-23 16:33:22
问题 I have a settings control as follows (I promise I didn't really call my buttons button_1 and button_2): <UserControl x:Class="App1.SettingsPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="646"> <Border BorderBrush="#FF590151"

Manifest references file 'Bing.Maps.dll' which is not part of the payload

送分小仙女□ 提交于 2019-12-23 16:15:47
问题 Error 1 Manifest references file 'Bing.Maps.dll' which is not part of the payload. C:\Users\xxx\Desktop\xxx\Applicationxx\Applicationxx\Package.appxmanifest Application7 I added this into a existing Metro application and its giving me that error, anyone has solution to it? 回答1: Go to the properties of the project and under Build, you will see Platform Target. Choose either x64 or x86 instead of Any CPU and it should be solved. ~Guo Hong 回答2: To correctly reference Bing Maps for a Metro app...

Allow user to use tab in RichEditBox in a Windows 8 App?

别说谁变了你拦得住时间么 提交于 2019-12-23 12:25:00
问题 Right now the tab function moves the focus to the next control, I want it so it just actually tab in the Text Box. I noticed you cannot tab in the Windows 8 Mail app also.... Also is there a RichTextBox alternative? 回答1: Currently (in the RTM release) there is no AcceptsTab like setting for RichEditBox (it only has AcceptsReturn) see also this feature suggestion. However you can subscribe on the KeyDown event of your RichEditBox where you can handle the tab key yourself: private void

How to debug HTTP traffic of a Windows 8 Metro style apps using Fiddler?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 11:45:38
问题 I'm using 'HttpClient' in a Windows Metro style app and want to see the traffic using Fiddler. However, when Fiddler is active I get an exception that the app can't connect to the server. What's the problem? 回答1: The answer is in this article: "Fiddler and Windows 8 Metro-style applications". Turns out that "connecting to Fiddler requires an Application Capability or Loopback Exemption". 来源: https://stackoverflow.com/questions/7619419/how-to-debug-http-traffic-of-a-windows-8-metro-style-apps

Cannot resolve Assembly or Windows Metadata file 'System.Data.dll'

那年仲夏 提交于 2019-12-23 09:59:49
问题 I just created a new windows 8 app in c#/XML and download mongodb c# driver and add its reference in my project and follows the rest of tutorial , but when i try to run my app now its saying Cannot resolve Assembly or Windows Metadata file 'System.Data.dll' Type universe cannot resolve assembly: System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. Please help me thanks in advance . 回答1: Looks like system.data is unavailable to metro apps. The general consensus seems

How do I find out if a file is already created in a StorageFolder

北城余情 提交于 2019-12-23 09:49:05
问题 If I have a metro StorageFolder, I can get a file using GetFileAsync(fileName). However, how do I know if the file exists in the first place? Right now, I catch an exception but it does not seem like the right thing to do. 回答1: According to Microsoft, they want us to catch the exception. The reasoning they gave me is that them providing a File.Exists API would open you up to race conditions where the file's existance might change between when you check and when you try to use the file.

Metro Style App HTML/JS writing local files

别来无恙 提交于 2019-12-23 04:13:32
问题 I've built an app for Windows Store that writes to local files using Windows.Storage.FileIO (createFileAsync, readTextAsync and writeTextAsync). My plan is to use the file as a simple database (the data is simply JSON formatted user information). Is this a bad idea? Are the files written this way really persistent (or are they deleted when the app is updated)? Can the user themselves delete them (for example through deleting cookies/temp internet files or the likes)? I'm just wondering how

Data Bind failing for Custom HtmlControl inside ItemTemplate of ListView

。_饼干妹妹 提交于 2019-12-23 03:28:34
问题 I have an ItemTemplate which is set on a ListView: <div class="commentTileTemplate" data-win-control="WinJS.Binding.Template"> <div class="commentTileControl" data-win-control="WinJS.UI.HtmlControl" data-win-options="{uri: '/htmlControls/commentTile/commentTile.html'}"></div> </div> The data bindings which are inside the HtmlControl, fails to bind the first time the ListView is shown, on successive runs, it works fine. If I remove the template from the ListView, then the raw data shows up as