microsoft-metro

Windows Store App - Black Screen Transition for a while

▼魔方 西西 提交于 2019-12-11 14:45:39
问题 i have a problem while navigating between pages of my app. Going from page "a" to page "b", i see a black screen just a second before seeing the page "b". It also happens in the opposite navigation. I know this issue is quite common, also here, but i don't understand how to solve it...and it's very ugly to view... EDIT: just an important information: i've set a custom image as background of both the pages(a,b)...as you can see in the code "Assets/Page.jpg" Here is my basic page "a" XAML:

What is the event that toggles appbar in javascript Windows 8 Metro Style App?

守給你的承諾、 提交于 2019-12-11 13:35:34
问题 I am looking for the event that toggles the appbar in javascript. So it's basically the "edge-swipe" gesture event on the top/bottom edge of the screen. For example, I want to show a text "edge swiped" on the page when the user swipe the upper or butto edge of the screen, without declaring a app bar in the page. How will I be able to do that? I tried crossslide event and it doesn't seem to be right. 回答1: Cross-slide won't work for you because it's a gesture that can start anywhere. There's no

Getting the File type in Azure Storage

风流意气都作罢 提交于 2019-12-11 12:58:00
问题 Is it possible to get the file type of an image file or blob in Azure Storage? i have researched everything but no to avail. any response will be appreciated! I was wondering, is there anything that i could add in order to get it? here is my code: ImageSource wew=new BitmapImage(new Uri("http://sweetapp.blob.core.windows.net/cakepictures/"+newfilename+filetypeofthepicture, UriKind.RelativeOrAbsolute)); //need to get the file type of the image CakeData.Add(new CakeData { Cakename = item

Barcode scanner for metro apps [closed]

孤人 提交于 2019-12-11 12:54:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I want to develop a metro app for scanning bar-codes. Is there existing default library for bar-code scanning? Please provide me the guidelines and sample apps 回答1: Check out ZXing.Net on CodePlex and NuGet. The CodePlex source code has sample of WinRT app. MainPage.xaml <Grid Background="{StaticResource

Possible to get network MAC address in .NET Metro app?

感情迁移 提交于 2019-12-11 11:45:18
问题 I have the requirement to get get the MAC address of the network interface in my Metro UI app. As far as I can tell, this is simply not supported in the .NET 4.5 for Metro application API. Am I wrong? 回答1: You are restricted from accessing low-level networking information from a Metro Style application, therefore this is not possible with the stock SDK. This is by design. 回答2: You can't retrieve the MAC Address per say, but you do can retrieve hardware specific information to identify a

VC++ Metro Style Apps Windows

ぃ、小莉子 提交于 2019-12-11 11:14:39
问题 I have a decade old MFC VC++ desktop application. Beauty of the application is it works from Windows 2000 to Windows 7, in more than 15 languages. Its multithreaded with IPC and SSL on top of winsocket. Lately i am reading that win Windows 8 Metro style we will not be able to run the existing application. Does that mean Windows is heading towards killing VC++ or MFC? Is there a possibility of me keeping same code base for all windows versions? Do I have alternative APIs for winsock and MFC?

Creation Of GroupItems in MetroApps using HTML & Javascript

痴心易碎 提交于 2019-12-11 11:07:39
问题 I am using Windows 8 and Visual Studio 2012 RC for Metro apps Development. Here I am taking GridApplication template for creating 3 listviews ( groupedItems ), these 3 listviews will need to display different information from my service. Actually in default grid application they have given common items for all listviews, but here I do not want to display images for second listview , when I removed background image variable in javascript file it is showing like empty-image symbol (cf.

How to create a file when the file is not exist in WinRT?

拥有回忆 提交于 2019-12-11 11:00:44
问题 What I want open a file if it exists, create it if it not exists What I code try { return await folder.GetFileAsync(fileName); } catch (FileNotFoundException ) { StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync(fileName); return file; } What the error Cannot await in the body of a catch clause How to make it? 回答1: Why not just call CreateFileAsync and specify OpenIfExists? Create the new file or folder with the desired name, or returns an existing item if a file or

How to handle concurrency with StorageFile operations?

只谈情不闲聊 提交于 2019-12-11 10:28:46
问题 I'm attempting to write to a file but "occasionally" I run into issues that I think are down to concurrency, as some of the time, I'm getting a System.UnauthorizedAccessException with message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) ...from the following: public async void SubmitChanges() { DataContractSerializer serializer = new DataContractSerializer(typeof(LocalCache<T>)); StorageFile file = await ApplicationData.Current.LocalFolder .CreateFileAsync

For loop not waiting for winjs promise completion

拟墨画扇 提交于 2019-12-11 10:26:38
问题 For loop not waiting for winjs promise completion for (var j = 0; j < magazineResult[0].data.length; j++) { downRequest[0].data[j].COVER_PAGE_THUMB = parentUrl + eval(JSON.stringify(downRequest[0].data[j].COVER_PAGE_THUMB)); // Create a new download operation. downloadFile(eval(magazineResult[0].data[j].COVER_PAGE_THUMB),eval(JSON.stringify(magazineResult[0].data[j].COVER_PAGE_THUMB))); var url = downRequest[0].data[j].COVER_PAGE_THUMB; var imgPath = downRequest[0].data[j].ISSUE_ID; var