microsoft-metro

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

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,

Launch Windows Explorer from Metro style app

冷暖自知 提交于 2019-12-24 06:39:05
问题 I would like to download a file to the DownloadsFolder in a Windows Store App. And then I'd like to bring up a Windows Explorer open on the DownloadsFolder (actually on the folder I create in the DownloadsFolder) But I can't figure out how to do it. This stackoverflow question Launching a Desktop Application with a Metro-style app suggests using Launcher.LaunchUriAsync. But the documentation claims: You cannot use this method to launch a URI in the local zone. For example, apps cannot use the

TileControl Devexpress

≯℡__Kan透↙ 提交于 2019-12-24 05:44:09
问题 I have developed an application using TileControl and on Clicking the Tiles, it is navigating to forms. The forms contains GridControl and when I am performing double click event on gridview,it is navigating to another form and displaying a result. Now the Problem is, when i am clicking the back button of Tile Menu,it is directly showing the main menu,instead of form having GridControl. I want to show the GridControl first and then the Main Menu. Please help me with a solution. 回答1: I far as

Setting Path.Data in code-behind

故事扮演 提交于 2019-12-24 05:33:14
问题 I have this XAML code which makes a Path which is inside a Canvas residing in a MainPage.xaml page. <Path x:Name="progressPath" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stroke="Gold" StrokeThickness="5" Canvas.Left="300" Canvas.Top="300" Height="305" Width="305" Data="m 150,0 A 150,0 0 0 0 150,0 A 150,150 0 0 0 150,0"> </Path> I want to have several Path 's like this one (for example, a new Path is made when the user taps a button), so I decided to create them in the

Binding Hyperlink to richtextblock in windows 8 Metro app

。_饼干妹妹 提交于 2019-12-24 03:34:20
问题 I am building a windows 8 metro app for fun/learning etc. I have created a listview of text items that have descriptions, images etc. Inside the description, there are often hyperlinks that I would like to make clickable. However, when binding to a textblock, xaml hyperlink code is displayed as text. Searching arround, it looks like I need to use a richtextblock for hyperlinks. I can't seem to figure out how to bind a hyperlink to it. I have found many examples from wpf showing how to extend

High quality image scaling

老子叫甜甜 提交于 2019-12-24 03:18:20
问题 I have read this question, High Quality Image Scaling Library , but it only pertains to GDI+. When I scale down an Image in my app, it becomes very jaggy. I can't find any property on the Image class that allows me to increase the quality of the down-scaling. How can I do this? EDIT: I have now used this code: BitmapImage img = new BitmapImage(); img.UriSource = new Uri(Graphic, UriKind.Relative); return img; where Graphic is a string that contains the path to the image, but am getting this

Windows Store App: Eliminates GridView styles and use only for hub page layout

ⅰ亾dé卋堺 提交于 2019-12-24 01:51:26
问题 I try to make a Windows Store App (Metro) hub page which has four different templates with GridView. I referenced link in Creating hub page with different controls in Windows 8 page and it works fine. But GridView has a default style which interacts with touch(and mouse) activity. It grayed when hover, and shows click interaction. My question is, how to disable those behaviors? I tried to dig with Blend but hard to find the place to be customized. 回答1: Sorry I don't know MS Blend But in

Can developers “force” the system to prevent “Metro” apps from being suspended while background async processes are running?

吃可爱长大的小学妹 提交于 2019-12-23 23:07:08
问题 When an app is not currently "front and center" in Win8, it is suspended. Does this preclude keeping the app explicitly alive in the background, such as in an email client, using async operations to poll the mail server for new messages, and download them (and then update the Tile with count of new messages)? If this is not possible (a suspended app cannot perform background processing, or cannot force the system to allow it to stay active, albeit not visible), what would be the workaround -

How can I use DesignData to help develop a Metro app?

一笑奈何 提交于 2019-12-23 21:25:24
问题 I've been merrily using the DesignData in Windows Phone apps, and I was hoping to use it to help visualise designs in a Metro style app in VS2012/Blend for VS. I've tried the hopefully obvious: <common:LayoutAwarePage x:Name="pageRoot" x:Class="MyRootNamespace.Views.EventView" DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}" IsTabStop="false" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"