microsoft-metro

The ScrollViewer does not scroll

牧云@^-^@ 提交于 2020-02-13 16:14:45
问题 I would like to have an interface with 3 components one next to the other. The first would be a ListView and the two others being Grids. Since the components will overflow on the right, I want to put them in a ScrollViewer. I did not succeed. I tried to do a really simple example to try, but even the example fails. <ScrollViewer Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Top" Width="600" Height="400"> <StackPanel Width="1200" Height="400" Orientation=

passing a string to a User Control

允我心安 提交于 2020-02-02 16:11:18
问题 I'm approaching to Metro App world in this days, please be gentle. Here's the problem: a page receives a string from another page protected override void OnNavigatedTo(NavigationEventArgs e) { Title.Text = e.Parameter.ToString(); } and I need to pass this string to an User Control of the receiving page. How can I pass a parameter from a page to an UserControl of another page? 回答1: Like this: Add a property to your user control: public string MyText { get; set; } Give your user control a name.

How to display a Windows 8 metro style tile within an app?

不问归期 提交于 2020-02-02 11:02:01
问题 Windows 8 metro style app tiles are created based on pre-defined xml templates (found here). Is there any way to hook up to Windows' rendering of the tile to allow a tile preview within an app? In my app I would like to offer the user a subset of the tile templates listed in the above link and let the user customize the tile content. A live preview of the customized tile rendered within my app would greatly improve the user experience. 回答1: you should look into HubTile. I don't know any free

How to display a Windows 8 metro style tile within an app?

谁说胖子不能爱 提交于 2020-02-02 10:59:13
问题 Windows 8 metro style app tiles are created based on pre-defined xml templates (found here). Is there any way to hook up to Windows' rendering of the tile to allow a tile preview within an app? In my app I would like to offer the user a subset of the tile templates listed in the above link and let the user customize the tile content. A live preview of the customized tile rendered within my app would greatly improve the user experience. 回答1: you should look into HubTile. I don't know any free

No XAML binding debugging with breakpoints in Visual Studio 2012 (RTM, on Windows 8 RTM)?

蹲街弑〆低调 提交于 2020-01-23 01:18:26
问题 After upgrading my Silverlight 5 solution to Visual Studio 2012 (RTM), and then updating to Windows 8 (RTM), I noticed that when you set a breakpoint in XAML, you get the following tooltip in debug mode: The breakpoint will not currently be hit. Symbol not found: System.Xml.Xsl.Runtime.XmlQueryRuntime.OnCurrentNodeChanged2. I then tried to set a breakpoint in the XAML of a Windows Store App test project, and then of a WPF application, but I got the exact same tooltip. I tried to repair Visual

Waiting from a desktop app for events originating from a metro app and vice versa

心不动则不痛 提交于 2020-01-17 14:59:28
问题 We have a metro app and we want to test certain issues that may come up in the app due to multiple operations going on in async. So basically our plan is to have a test app (preferably a desktop app) which can wait on certain events generated from within the metro app.We also want this to be bidirectional that is our desktop test app also generates certain events on which the metro app will wait (We will inject that part in the metro app code).This way we hope to generate more scenarios. The

Waiting from a desktop app for events originating from a metro app and vice versa

南笙酒味 提交于 2020-01-17 14:57:27
问题 We have a metro app and we want to test certain issues that may come up in the app due to multiple operations going on in async. So basically our plan is to have a test app (preferably a desktop app) which can wait on certain events generated from within the metro app.We also want this to be bidirectional that is our desktop test app also generates certain events on which the metro app will wait (We will inject that part in the metro app code).This way we hope to generate more scenarios. The

Is there a way limit the no of urls in web view

时间秒杀一切 提交于 2020-01-17 05:20:11
问题 I am writing a windows 8 application in c# xaml , I am using using a web view, I want to limit the URLs to be loaded in the web view as there are some buttons which are not necessary and we have specific web apps for that purpose. So can we limit the URLs that can be loaded in a web view? A way I thought of was to check for an event which will be fired once we start navigating to a new URL. But I could not get one in MSDN doc. Any thoughts? 回答1: While not as simple as having a Navigating

Retrieving data from SQL using C# Metro App

ε祈祈猫儿з 提交于 2020-01-17 04:47:05
问题 I am new to programming Metro App for Win8 using C#. I am familiar with C# already, but when I try to use the C# code for connecting and retrieving info from a SQL Database, it does not work. Main problem is I cannot reference the "using System.Data / .SqlClient", thus I can't use the SqlConnection / DataReader. I could not find a workaround to this. Edit: Upon further research, I found out that Windows 8 Apps does not support access to local services(hence cannot access Local SQL) based on

Controlling tile animations on the Start Screen

有些话、适合烂在心里 提交于 2020-01-17 02:54:06
问题 I'm using the TileSquarePeekImageAndText02 template to display some information on the tile. Right now, I believe the tile is alternating between the two states every 10 seconds. Is there a way to control this setting? I want it swap the tiles every 5 seconds. Here's the XML for the tile -- <tile> <visual> <binding template="TileSquarePeekImageAndText04"> <image id="1" src="image1" alt="alt text"/> <text id="1">Text Field 1</text> </binding> </visual> </tile> 回答1: No, Windows determines and