windows-8

how to disable the default selection in listview when you navigate to it

半腔热情 提交于 2019-12-08 07:20:47
问题 I have two list views in a scene (listview1 and listview2, contents of listview2 depends on the selecteditem on listview1) and when I navigate to the scene I want the first item in listview1 to be selected and the details be displayed in the other listview (listview2) but I do not want any item in the listView2 selected by default. What i am observing is that the first item in listView2 is also selected and that is causing selectionchanged event to be triggered for listview2 (which I want to

Multiple HTTP Requests in WinRT / Win8

与世无争的帅哥 提交于 2019-12-08 06:52:46
问题 Is it possible to send more than two HTTP requests concurrently in WinRT? I'm trying to load multiple JSON documents from a server and HttpWebRequest fails to respond after the second call. Here is a sample snippet that illustrates this: protected async override void OnNavigatedTo(NavigationEventArgs e) { const string url = "http://www.bom.gov.au/fwo/IDV60901/IDV60901.94868.json"; const int iterations = 3; var tasks = new List<Task>(); var ticks = DateTime.Now.Ticks; for (var i = 0; i <

Metro/Windows 8 + C#/XAML: How to find valid URIs to pictures stored in the Documents Library?

丶灬走出姿态 提交于 2019-12-08 06:22:19
问题 For Windows 8, I have created an app that downloads pictures from the web and stores them in programmatically created subfolders in the user's Document Library. I have added the needed capabilities and declarations to the application manifest: Documents Library enabled as a capability File type association for jpg added and "open is safe" marked in declarations When firing up the app, all folders and files are created correctly - and the user can open them manually from the file system. My

How to add a progress ring to the splash screen in Windows 8?

落爺英雄遲暮 提交于 2019-12-08 06:19:26
问题 I need to activate the splash screen and add to it a progress ring in a Windows 8 metro app using C# and XAML. I have added the extended splash screen but it is not showing at all! Can anybody tell me how to do this? using System; using System.Collections.Generic; using System.IO; using System.Linq; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls;

can a C# windows application be run on a windows 8 based tablet well?

烈酒焚心 提交于 2019-12-08 05:50:58
问题 Recently I was asked to work on a project which was developed for an aviculture company. The client asked if I can make the application which was being developed in C#, to work on a tablet. So i want to know if i finish the application in c# normally Will I be able to: 1.Use the mono for android and compile the whole project with that and get an android app easily for being used in android devices? 2.Use the executable project on a Windows 8 tablet without any changes? I would be grateful if

WPF Tile Control like Windows 8 Start Menu

孤街醉人 提交于 2019-12-08 05:38:13
问题 So, does anyone knows a panel or a control which emulate Windows 8 Stat Menu Tile Panel? with all of those features like SQUAD tiles or bigger ones? Also i have seen this link on Stack overflow, but because of low reputation points, i could comment there that "IT DOESN'T WORK" Emulates Windows 8 Start Menu Tile Layout Engine 回答1: The answer is: no, there is no native control which emulate a tile. Thus, basically, you could do it yourslef as explained in the link you provide: Emulates Windows

Serialize XML data (Incremental storing) in Windows 8

亡梦爱人 提交于 2019-12-08 04:54:58
问题 How to serialize XMl data in Windows8.For Metro the methos are asynchronous. For saving an action can be passed that will be called once the save operation is complete. When loading data you'll want to pass an action that will received the loaded data and an exception parameter that will be populated if the data could not be loaded. How is it possible. Below is the code for serializing in wp7.. how is it poessible in windows 8?? private void SaveProfileData(Profiles profileData) {

C# code to change the default program attached with an extension using a custom progid with hash in windows 8

≡放荡痞女 提交于 2019-12-08 04:46:57
问题 Purpose: Associate a new progid to an extension so that file will open with new associated program. Programming Language: C# Description: I want to create a program to associate another program with an extension from my recommended program list. My program is working in windows-xp and windows-7 but it is not working in windows-8. when i searched for the issue, i found that in Windows-8 there is an additional key called "Hash". I am not able to find the hash for my new progid. Steps Being

cd command won't change directory. Comand prompt

醉酒当歌 提交于 2019-12-08 04:46:42
问题 I have windows 8, and I'm using the command prompt. It says C:\Windows\System32> and if i try to change directory, it says "The system cannot find the path specified." In this case, im typing the exact following command: cd desktop It works fine on my windows 7 computer. Why is it doing this? 回答1: Because your desktop folder is not in c:\windows\system32 . Presumably, your Windows 7 cmd prompt started you in your user folder instead of system32. Try this instead. cd %userprofile%\Desktop 来源:

How do you style WebView control in Windows Store App?

*爱你&永不变心* 提交于 2019-12-08 03:38:10
问题 I have C# / XAML win store app which receives various data from json. one piece of it - html string. I display that string using WebView.NavigateToString However I don't see how can I style it. Normally I would use blend to get default style and then edit it. But Blend doesn't let me style WebView. I ended up wrapping the json html into <body style='background-color:black;color:white' /> but this approach doesn't let me use theming which the rest of the application does. What is the 'proper'