microsoft-metro

GroupedItemsPage: View jumps back to start when navigating back from detailpage

半世苍凉 提交于 2019-12-06 11:44:07
问题 I developed a quite popular news app for a newspaper. Unfortunately, my users reported the following problem that I can reproduce: The App basically consists of a GroupedItemsPage and a ItemDetailPage (and several other pages, not important here). The GroupedItemsPage shows the news grouped by category. As the user scrolls to the right, he clicks on one of the items of interests, gets redirected to the ItemDetailPage and navigates back. Back on the GroupedItemsPage the view jumps back to the

Force showing keyboard in metro?

心已入冬 提交于 2019-12-06 11:31:59
I'd like to be able to force the keyboard to show on screen in my Metro app. My goal is to test out different layouts/controls and get a feel for the interaction. My problem is that I'm running Win8 on a MacBook Pro (Parallels) and I don't know how to override the physical keyboard and show it on screen instead. Similarly, I'd like to be able to force rotation if possible. You could run your app the Simulator . You can put the Simulator in "Touch Mode" and that will interpret mouse clicks as touch events in the on screen controls like Text Boxes and you can choose to rotate the Simulator into

How to share Windows 8 WinRT Metro style libaries/components across apps

Deadly 提交于 2019-12-06 11:30:48
The Metro documentation states that the applications are self-consistent (no shared DLL’s, etc), So I’m just wondering how you can create a modular, BIG Metro application by creating reusable components/libraries. Considering the case for HTML5/JavaScript Metro apps, if a lot of them should contain the same CSS and JavaScript (consider jQuery, templates) or WinJS scripts then it doesn't look quite good … I expected some form of libraries/reuse to exist from the start. The HDD space is definitely cheap nowadays but I think that a versioned library repository should be in place and the

How to Launch Metro app in windows 8 from IE using javascript

非 Y 不嫁゛ 提交于 2019-12-06 11:20:05
问题 I want to launch a metro application in windows 8 when user clicks a link on a web page that is rendered in IE 10. 回答1: If you have a Metro application your website can ask IE to show an install/launch button by adding some meta tags: <meta name="msApplication-ID"content="{ID}"/> <meta name="msApplication-PackageFamilyName"content="{PackageFamilyName}"/> Details at http://msdn.microsoft.com/en-us/library/ie/hh781489(v=vs.85).aspx You can also register your Metro application to handle

Windows 8: How to undo & redo ink using built in Inking functionality?

一个人想着一个人 提交于 2019-12-06 10:49:26
问题 I've implemented inking code in my app based on the simplified inking sample by microsoft : http://code.msdn.microsoft.com/windowsapps/Input-simplified-ink-sample-11614bbf/view/SourceCode First I made a class that saves data of an operation (draw/delete/clear) like this: public enum eInkOperation { Draw, Delete, None } public class InkOperation { public InkStroke Stroke { get; set; } //requred for drawing from undo public eInkOperation Operation { get; set; } public InkOperation(InkStroke

How to capture the screen in a Metro C# app

时光毁灭记忆、已成空白 提交于 2019-12-06 10:29:41
问题 Anyone got a snip for grabbing a screenshot of your metro app using C#? Or C++? Or VB? Thanks... 回答1: No, there is no way for a Metro style app to do this. By design they cannot directly interact with other apps outside of themselves, including capturing screenshots which may include other apps. There also isn't a way for a Metro style app to render Xaml elements to a bitmap so you can't readily implement this for your own app. --Rob More details are found here : MSDN Forum I haven't test

Windows Phone 8.1 - Pivot Header

别来无恙 提交于 2019-12-06 09:47:42
问题 i am using pivot control, and i want to change the forground color of headers! but somehow i am not able to do it with pretty easy guess ! <Pivot x:Name="pivot1"> <PivotItem x:Name="pivot1item1" Header="Profile" Style="{StaticResource PuzzlePivotItemHeader}"> <Controls:Profile /> </PivotItem> <PivotItem x:Name="pivot1item2" Header="Filters" Style="{StaticResource PuzzlePivotItemHeader}"> <Controls:Filters /> </PivotItem> </Pivot> and style is : <Style x:Key="PuzzlePivotItemHeader" TargetType=

How to download a webpage in MetroStyle app (WinRT) and C#

可紊 提交于 2019-12-06 09:28:40
I'm creating a MetroStyle app and I want to use a website API that is based on the HTTP Get methods. For instance to login I should download the XML returned by this URL: websitehost.com/api/login.php?u=username&p=password The problem is that the new MetroStyle apps won't let me to use many of the methods I've been using for years in .Net so how can I download the returned XML document and parse it? Akku You might be searching for this: public async Task<string> DownloadPageStringAsync(string url) { HttpClientHandler handler = new HttpClientHandler() { UseDefaultCredentials = true,

Binding to InnerHTML in MetroStyle App from Javascript

試著忘記壹切 提交于 2019-12-06 09:21:07
I have a Div Defined as: <div class="article-content" data-win-bind="innerHTML: content"></div> and im binding to it with an object which has content property. now the object i create using external resources and sometimes the content property would has content like this : "some text <iframe width="560" height="315" src="youtubelink" frameborder="0" allowfullscreen></iframe>" this throw exception: Unable to add dynamic content. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script

Why does the file async API block

瘦欲@ 提交于 2019-12-06 09:02:29
问题 I am writing a simple metro app. However, the API blocks when accessing files. By blocking, I mean the programs waits forever. Creating/opening a file or folder should take at most a few seconds. In this case, it takes forever. When I run the program, it never comes back from OnTest. Is it what you get. I understand .Wait will wait for the creation of files and folders to finishe. Maybe that's not great design. However, that's not the point. My question is: Do you get the same behavior