microsoft-metro

Is preparing Windows 8 XAML HubPages from several GridViews inside ScrollViewer the good approach?

旧街凉风 提交于 2019-12-25 02:59:29
问题 I'd like to get the effect visible on the picture: 回答1: I don't think it is. A GridView already has a ScrollViewer in itself, so multiple of them does not make sense. I would try to use a single GridView with GroupStyleSelector/ItemContainerStyleSelector/ItemTemplateSelector implementations and DataTemplates to define each item. A less dynamic version might just be a ScrollViewer with Style set to HorizontalScrollViewerStyle, a horizontal StackPanel and a few VariableSizedWrapGrids - if you

Where should I put C# dll in Metro Style Appc#

人盡茶涼 提交于 2019-12-25 01:07:40
问题 I am trying to import dll from Metro Style App. But I don't know where should I put dll. Please reply to me. 回答1: You can only reference DLLs built against WinRT. Typically these can be added via nuget, or alternatively added as a project, and using a project reference. Using other approaches is likely to fail certification, and not allow you to distribute your app to the general public. 来源: https://stackoverflow.com/questions/12685805/where-should-i-put-c-sharp-dll-in-metro-style-appc

Update tile notifcation with XML returned by web service

纵然是瞬间 提交于 2019-12-24 20:36:16
问题 I have a Metro app in C# & XAML. The tile is updated periodically and I've used WebAPI to serve the tile notification XML. So far so good. I was then told that I cannot use WebAPI as the server that I was planning to host it on does not have .NET 4.5. No plans to install it anytime soon either. I had to change the WebAPI to a plain old Web service (.NET 3.5) which does the same thing - return tile notification XML. I've enabled HTTP-GET (I know, security concern) and was able to invoke the

change image source programmatically

自古美人都是妖i 提交于 2019-12-24 18:20:31
问题 I cannot figure out how to dynamically load an image from the disk to a Xaml image control. <Image x:Name="imgLogo" ....../> Then in my c++ class, i cannot get any examples working that I have found. Most are in c#. One annoyance is that I keep seeing System.Windows.Media::ImageSource used, but that is not in my framework. Can someone please show me an example. I'm coming from the iOS world and am not used to MS and their frameworks. Thanks, 回答1: Try this, it's in C# but should be fairly easy

change Tile background color by Start Screen Color

北城以北 提交于 2019-12-24 14:49:19
问题 I am developing a Windows 8 Metro UI app. How can I set my app Tile background to Start Menu Color? 回答1: I am fairly certain you cannot programmatically access the Start screen color programmatically, though I cannot seem to find a clear reference to that newer than the Release Preview. You can set the tile background color explicitly via the app manifest 来源: https://stackoverflow.com/questions/12239357/change-tile-background-color-by-start-screen-color

windows store app date picker null date

感情迁移 提交于 2019-12-24 13:47:31
问题 i need datepicker in window store app , windows 8, but i am not able to find any control, so i used this : jasonmitchell / WinRT-XAML-DatePicker https://github.com/jasonmitchell/WinRT-XAML-DatePicker/blob/master/Samples/WinRTDatePicker.Samples.sln but my problem is , by default it shows today date, that i don't want, i don't want to show any date, if user did not apply any date if anybody have idea to working with date-picker in windows metro application, that will be great, i know windows 8

Windows Store App running .msi installer

只谈情不闲聊 提交于 2019-12-24 11:42:04
问题 I am developing a windows store app which downloads a MSI file from a URL. I want to automatically run the MSI installer from C# code. first problem is the windows smart screen - the MSI is not signed event when smart screen is disabled var success = await Windows.System.Launcher.LaunchFileAsync(file); returns false; file = downloaded .msi installer Any ideas? Thanks for any advice. 回答1: It is not possible to launch an MSI (or other executable formats) directly from a Windows Store app. This

Winrt custrom grid control with gridlines

感情迁移 提交于 2019-12-24 10:38:13
问题 I want to make a custom grid control, because the default doesn't support showing grid lines. I found a wpf solution for this, but the winrt lacks few features that the wpf supports. The code in the wpf soulution is something like this : protected override void OnRender(DrawingContext dc) { if (ShowCustomGridLines) { foreach (var rowDefinition in RowDefinitions) { dc.DrawLine(new Pen(GridLineBrush, GridLineThickness), new Point(0, rowDefinition.Offset), new Point(ActualWidth, rowDefinition

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", {