windows-8

Save a Grid and elements in it as a jpeg image - WinRT

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:27:02
问题 I am stuck in my app. I have a grid with some elements in it. These elements are buttons, images and other controls like stackpanel and nested grids. I want to save what appears to the user as image on click of a button, but i dont know how to proceed on this. Can I write elements like grid and buttons onto a writable bitmap? Or is there some other way? In short I want to take a screen shot of my app screen when the user clicks the button. Please help. 回答1: Taking "screenshots" of winrt apps,

Segoe UI Symbol 5.9 on Windows 7

那年仲夏 提交于 2019-12-24 11:44:44
问题 I would like to use Segoe UI Symbol fonts, as described: http://msdn.microsoft.com/en-us/library/windows/apps/jj841126.aspx to provide icons for an application. This is a WPF application that will be deployed to Windows 7 and potentially 8. Windows 7 machines do not appear to have the same version of this font (5.0 vs. 5.9). I found a knowledge base article that claims to inject some of the missing things: http://support.microsoft.com/kb/2729094 But I still seem to be missing most or all of

Interface Marshalled for a Different Thread in C# on Windows 8

折月煮酒 提交于 2019-12-24 11:11:59
问题 I'm working on a Windows 8 app. While the app is running, I'm trying to determine when a user's internet connectivity is restored. In an attempt to do this, I'm listening to the NetworkChange_NetworkAddressChanged event. When that event is fired, I try to update my UI and execute my query to my web service via a method called GetLatestData . When I attempt to call this method from within the NetworkChange_NetworkAddressChanged event, I currently get an error that says: The application called

Issues with retargeting app for windows 8.1

折月煮酒 提交于 2019-12-24 10:44:54
问题 I am trying to retarget my app for windows 8.1 and I am experiencing some issues. I am getting an error that personally I do not recognize nor I found any information online Syntax Error found in XBF generation AdSettingsFlyout.xaml I do not have an AdSettingsFlyout.xaml file in my project and I suppose is one of the files that get built with the project due to Windows Ad SDK. I did not find a windows 8.1 SDK. How can I fix the issue? I need some of the 8.1 functionality in my app 回答1:

Can we send Tile notification from Desktop app on Windows 8?

限于喜欢 提交于 2019-12-24 10:21:31
问题 as we know, we could send out the toast notification from Desktop App (not store app) on Windows 8 per this link sending toast notification from desktop and also code sample. We are looking at if we could send the tile notification from desktop applications and I didn't find information on internet. So it seems to me that it is impossible. However I just want to confirm with expert here. 回答1: Your assumptions are correct - tile notifications are not supported for Desktop applications. In the

shutdown windows 8 from metro app

一笑奈何 提交于 2019-12-24 10:03:02
问题 I'm doing a metro app for Windows 8. And as part of its functionality, I need to initiate shutdown of Winodws 8 from the Metro App. Here are the questions: 1) Firstly, I researched a lot on this topic and I found out that System.Diagnostics.Process is not available for Metro App. So, is there a another way around? 2) Even if I can't directly shutdown, is there a way to trigger it from the Metro App? I would prefer a solution in C#. Thanks. 回答1: Doing this just isn't possible in a Windows

Binding listview on a page control using template in Windows 8

点点圈 提交于 2019-12-24 08:59:08
问题 For some reason, my template is not getting used in the binding of data. I'm using Visual Studio's "Navigation App" project type for Windows 8 app. When I run it, each item just gets filled with the full json string. Similar to binding without using any templates at all. home.js : var dataList = new WinJS.Binding.List(); var publicMembers = { itemList: dataList }; WinJS.Namespace.define("VideosData", publicMembers); (function () { "use strict"; WinJS.UI.Pages.define("/pages/home/home.html", {

How to write a log or text file to the file system in Metro Style App

末鹿安然 提交于 2019-12-24 08:48:51
问题 As the title said, I would like to write an activity log of my application into a file automatically. My application is built in Javascript/HTML5, when I am debugging I can use console.log("this is a debug log") and track it in console. But if I want to give my test machine to a certain test users, I want to be able to track the activity logs. Is there any way that I can do that. 回答1: Sure, just write out a file. Example here: http://code.msdn.microsoft.com/windowsapps/File-access-sample

Emulating Windows 8 Live Tiles animation with jQuery. How to start animation fast then end slow?

给你一囗甜甜゛ 提交于 2019-12-24 08:24:01
问题 I have this "tile" which I have found a way to update (add two content divs) using jQuery animations. But one problem, I want the animation to start fast then end slow, like in Windows 8. I have tried jQuery and jQuery UI easing plugins/methods, but none of them seem to be working. Here is a fiddle of my current project: http://jsfiddle.net/ModernDesigner/9r2gw/ So basically, I have a cropping div, with two same size divs. Then jQuery animates it to where the top div slides up out of sight,

How to perform raw SQLite query (With multiple row result) through SQLiteAsyncConnection

时光怂恿深爱的人放手 提交于 2019-12-24 07:58:15
问题 I do not have a class map to a table. I'm referring to the following thread. The get the number of row in a table, I am applying the following technique How to perform raw SQLite query through SQLiteAsyncConnection SQLiteAsyncConnection conn = new SQLiteAsyncConnection(DATABASE_NAME); int profileCount = await conn.ExecuteScalarAsync<int>("select count(*) from " + PROFILE_TABLE); Now, instead of obtaining result as number of row, I would like to retrieve result in multiple row data. In Java,