microsoft-metro

Start metro app (camera) from WPF application

二次信任 提交于 2019-12-12 09:56:02
问题 I have a ordinary .net 4 WPF application which is supposed to be run on a Windows 8.1 tablet. From this application I would like to start the native Metro camera app, if it is available. I´ve tried looking for answers, but it seems to require a Windows app to start metro apps. So is it even possible? Thank you :) 回答1: Have a look at this article: http://winaero.com/blog/exclusive-how-to-start-a-modern-app-from-desktop-without-going-to-the-metro-start-screen/ Basically, you need to run:

Displaying a picture stored in Storage file in a metroapp

孤人 提交于 2019-12-12 09:52:47
问题 I would like to display the content of a picture stored in a StorageFile through a binding, but whatever I'm trying to do it doesn't seem to work. Here are the two solutions I have already tested : string img =( await CompetencesFolder.GetFileAsync(FormatImageNameToFileName(imageName))).Path; And then returning the path obtained (a full absolute path to the file) to the source Property through binding, and : BitmapImage img = await LoadImage(await CompetencesFolder.GetFileAsync

Is there any MasterPage in windows8 development

点点圈 提交于 2019-12-12 09:18:20
问题 I have some pages in the win8 application, most of which have a similar layout, I use Frame.Navigate to switch the pages. Just wonder if there is something like MasterPage in asp.net webform/mvc. 回答1: Just create a page with the layout you want and then use templates to customize it for particular views. You could have one main view .xaml file and then create a resource dictionary file (for separation purposes) for each different way you use it. Edit: I found someone who made a "Master Page"

Simulating flipping live tiles in html

余生颓废 提交于 2019-12-12 08:52:39
问题 I need to code some html square "live tiles" that flip between 4 states periodically. Basically what I need is what this plug-in does http://www.drewgreenwell.com/projects/metrojs, but between 4 states, not just 2. Is there a definitive API/plug-in that allows live tile management in html/jquery sites? I'm not building a Windows 8 app, I'm just trying to simulate Live Tiles flipping in Html, and hopefully have it work in all major browsers. Thanks. 回答1: In the end, it seems that Drew's plug

Accepting invalid SSL certificates using WinRT

吃可爱长大的小学妹 提交于 2019-12-12 08:02:57
问题 There are scenarios where you want your application to accept invalid SSL certificates (testing environment/ self signed certificates etc). In the .NET world one would use the ServerCertificateValidationCallback class to do so. Unfortunately the class doesn't exist in a WinRT context. I need to consume a Web API using WinRT which is hosted on a server without a valid ssl certificate. How do you accept invalid ssl certificates in WinRT using the HttpClient class or any other appropriate class.

How to develop an application UI like Metro for Windows Vista/7

旧街凉风 提交于 2019-12-12 07:59:55
问题 How to develop an application UI like Metro for Windows Vista/7 github recently released their official client for windows and is very similar to Metro http://windows.github.com/ 回答1: You can do it in WPF by retemplating all the controls you use. There seem to be libraries that already do it to make apps look like the Zune Software or the GitHub client. http://elysium.codeplex.com/ http://mahapps.com/MahApps.Metro/ 回答2: You can also use Telerik Rad Controls to create WinForms application in

Download and Save image in Pictures Library through Windows 8 Metro XAML App

牧云@^-^@ 提交于 2019-12-12 07:24:50
问题 I am trying to develop a simple Windows 8 Metro app which simply downloads an image file from a given URL (say http://sample.com/foo.jpg) and then save it to Pictures Library. I have an image control in the UI to display the downloaded image. I'm also facing difficulty in setting the image source for the image control to the newly downloaded image (actually I'm not even able to download it). Also, is it possible to store the image file in a particular folder in the Pictures library (if it

how do i set PageOrientation.Landscape in programmatically? Windows Phone 8 C#

北慕城南 提交于 2019-12-12 06:29:00
问题 i want to put fullscreen icon bar to play video in full screen, for what i take application bar button : private void BuildLocalizedApplicationBar() { // Set the page's ApplicationBar to a new instance of ApplicationBar. ApplicationBar = new ApplicationBar(); // Create a new button and set the text value to the localized string from AppResources. ApplicationBarIconButton appBarButton = new ApplicationBarIconButton(new Uri("/images/AppbarIcon/wallpaper.png", UriKind.Relative)); appBarButton

My application crashed when snapped with items in listviews

别说谁变了你拦得住时间么 提交于 2019-12-12 05:24:25
问题 So, im currently working on a project using C#/XAML for a Windows 8 Store App and I've encountred a problem. When the user navigates to a Page a ListView with some Controls shows up. Then when the user decides to snap the page my application crashes and shows this: In my IntelliTrace this shows up and I press an Exception. It navigates me to this code. /// <summary> /// Implement this partial method to configure the service endpoint. /// </summary> /// <param name="serviceEndpoint">The

How to read a file shipped with the app in Windows 8 Metro

我的未来我决定 提交于 2019-12-12 04:57:59
问题 I've got a text file that ships with my app and I want to display its contents on the screen. Anyone know how to do that? The usual file IO doesn't seem to work for Metro. Thanks 回答1: In my app I am reading a XML file that comes with the app, you can tweak it to read any type of file public class LocalStorage { private const string SyndicationFeedCategoriesFileName = "FeedCategories.xml"; private StorageFile _storageFile; private StorageFolder _storageFolder; public async Task<XmlDocument>