windows-8

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

using custom font in xaml

一笑奈何 提交于 2019-12-23 20:15:46
问题 I need to use custom font in xaml (c#). The font is not installed on the computer. If the font is in the application installed folder,then i can use it even if it is not installed (/Fonts/New12.ttf#New12) My problem is that the custom font is been created on the local computer and can't be in the installed folder. The problem is that i can't copy the ttf file to the application installed folder , and i don't know how to use custom font that is not on the application installed folder Is anyone

cant use store test kit while Working with SQLite in Windows Phone 8

落爺英雄遲暮 提交于 2019-12-23 19:38:10
问题 I am using SQLite.WP80 version=3.7.16 in Windows phone 8 project. Now when I tried to test with store test kit it says: "the application package(XAP) is not up to date,recompile and try again. change the solution configuration to release and platform to any cpu and rebuild the app" But as I am using sqllite i cannot change to any cpu. Can anyone tell possible solution? 回答1: You should target just one CPU during development (depending on what machine you will be testing/debugging on). When it

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.

How do I make a hybrid app in Windows 8?

馋奶兔 提交于 2019-12-23 18:16:13
问题 How does Google Chrome make a hybrid app (i.e. one that works on the desktop and one that works out of the Modern UI, and that are switchable)? What new Windows API do they call? 回答1: The only applications that can be "hybrid" are browsers. See here (link to Microsoft whitepaper on making a browser desktop and metro enabled). 来源: https://stackoverflow.com/questions/13218928/how-do-i-make-a-hybrid-app-in-windows-8

How to get return value synchronously using ReadTextAsync(StorageFile file) in Windows8 app

邮差的信 提交于 2019-12-23 18:11:41
问题 Basiclly, my code is a very simple test for write and read files in a windows 8 style app. Here, a string "Jessie" is firstly written to dataFile.txt, and then it is read by the program so that the Text property of a Textblock in xaml could be updated. From msdn samples, I knew that WriteTextAsync and ReadTextAsync are for dataFile access to file in Windows 8 programming. However, the test result is that WriteTextAsync function actually works whereas ReadTextAsync does not(I can see the real

Can't register a C# generated selfsigned SSL certificate with netsh (error 1312)

北城余情 提交于 2019-12-23 16:38:36
问题 I have created a self-signed SSL certificate via C# (bouncycastle). It shows up in the local computer / personal store and looks exactly like the already existing localhost certificate from Microsoft. If I show the properties, it says: SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated. However, if I want to register this certificate via netsh, I get an error: netsh.exe http add sslcert ipport=0.0.0.0:{0} certhash={1} appid={2

How to display images from Picture Directory ?

删除回忆录丶 提交于 2019-12-23 16:34:10
问题 I want to display pictures in the Pictures library. I get pictures and bind data. StorageFolder picturesFolder = KnownFolders.PicturesLibrary; IReadOnlyList<StorageFile> myPictures = await picturesFolder.GetFilesAsync(); var mydata = from file in myPictures select new { Subtitle = "subtitle", Title = "title", Image = this.getImage(file.Path) }; this.DefaultViewModel["Items"] = mydata; This is getImage() for set BitmapImage. private async Task<BitmapImage> getImage(string finename) {

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