在Metro Apps和标准桌面应用程序中编写XAML之间的区别 [英] Difference between writing XAML in Metro Apps and standard desktop applications

查看:102
本文介绍了在Metro Apps和标准桌面应用程序中编写XAML之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我知道这似乎是一个愚蠢的问题,但是我遇到了一些使用Metro框架和我开发应用程序的问题我正在寻找关于Metro和桌面应用程序开发之间区别的明确答案。



除了掌握WIN RT之外我还遇到了一些障碍每次尝试刷新我的记忆如何在XAML中使用一些小功能。例如,我正在尝试在按钮上创建连续淡入淡出的动画,以吸引用户注意该按钮。所以,我不太记得如何在Style中设置动画。没问题,我用以下搜索字词检查谷歌机器..



storyboard xaml麦德龙事件触发器



..并获得以下结果,其中包含一个很好的代码片段供我黑客入侵。这就是问题所在。 MSDN上的这篇文章暗示您可以这样做:



Hi All,

I know this might appear to be a silly question but I'm coming up against some problems developing an app using the Metro framework and I'm looking for a definitive answer as to what the difference is between Metro and desktop application development.

Aside from getting to grips with WIN RT I've hit some snags every time when trying to refresh my memory on how to use little pieces of functionality in XAML. For example, I'm trying to create a continuously fading in and out animation on a button to draw the users attention to that button. So, I can't quite remember how to set up an animation inside a Style. Ok no problem, I check the Google machine with the following search term..

storyboard xaml METRO event trigger

..and get the following result which contains a nice snippet of code for me to hack. Herein lies the problem. This article on MSDN implies you can do this:

<Setter Property="Opacity" Value="0.25" />

     <Style.Triggers>  .......



但这不能在我的项目中编译。因为触发器不是有效的属性。



我正在运行相同版本的.NET,文章似乎没有说你可以或不可以使用这个在Metro应用程序中。



- 正如我所说这似乎是一个愚蠢的问题,我无法在任何地方找到明确的答案,但Metro有不同的味道XAML(如果这是描述它的正确方法)?



- 描述这个框架的正确术语是什么,所以我的搜索更有效?



谢谢全部,



拉里


But this does not compile in my project. As Triggers is not a valid property.

I'm running the same version of .NET and the article does not seem to say you can or can't use this within a Metro app.

- As I say this appears to be a silly question and I can't find a definitive answer anywhere but does Metro have a different flavor of XAML (if that is even the correct way to describe it)?

- What is the proper term to describe this framework so my searches are more effective?

Thanks all,

Larry

推荐答案

就差异而言,我使用了本指南 [ ^ ]过去。



此外,在搜索与Metro / Windows RT框架相关的内容时,通常术语 Windows Store 应用程序会产生良好的效果。他们选择使用术语Windows Store来描述某种应用程序的事实是愚蠢的,因为RT和Metro是更好的搜索术语。
AS far as the differences go, I have used this guide[^] in the past.

Also when searching for Metro/Windows RT framework-related stuff, often the term Windows Store app yields good results. The fact that they chose to use the term Windows Store to describe a type of application is idiotic, as RT and Metro are better search terms.


这篇关于在Metro Apps和标准桌面应用程序中编写XAML之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆