首页 \ 问答 \ Xaml组件在Silverlight + XNA应用程序的多个页面中可见(Xaml component visible in multiple pages in Silverlight+XNA applications)

Xaml组件在Silverlight + XNA应用程序的多个页面中可见(Xaml component visible in multiple pages in Silverlight+XNA applications)

我正在为Windows Phone 7做一个Silverlight + XNA游戏,我需要一个可以出现在多个页面中的xaml动画。 这样做的最佳做法是什么?

提前致谢。


I am doing a Silverlight+XNA game for windows phone 7 and I need to have a xaml animation which can appear in multiple pages. What is the best practice for doing this?

Thanks in advance.


原文:https://stackoverflow.com/questions/15748948
更新时间:2019-12-13 07:39

最满意答案

根据您对动画的含义及其实现方式,最明显的方法之一是将其放入XAML ResourceDictionary ,或者通过单独的XAML文件,或者是部分核心App.xaml


Depending on what you mean by animation, and the way it is implemented, one of the most obvious ways would be putting it in a XAML ResourceDictionary, either through a separate XAML file, or part of the core App.xaml.

2013-04-01

相关问答

更多

MySQL查询中的错误日期/时间(Wrong date/time in MySQL query)

建立连接后运行这两个很好: date_default_timezone_set( 'Europe/Copenhagen' ); mysqli_query( $mysqli, "SET time_zone='" . date( 'P' ) . "'" ); i got it working using : mysql_query("INSERT players SET time='" . date("D M d, Y G:i a") . "'" or die(mysql_error());

问题.htaccess url重写(issue with .htaccess url rewriting)

对于要忽略的文件夹(如CSS等),请在上次重写规则之前尝试此操作: # Directories to ignore RewriteRule ^(css|images|js)(/.*)?$ - [L] 如果您计划拥有机器人文件等,您可能也想考虑使用它: # Ignore favicon & robots.txt RewriteRule ^favicon\.ico - [L] RewriteRule ^robots\.txt - [L] RewriteRule ^sitemap\.xml - [L

通过jQuery更改名称输入(Change name input by jQuery)

我在你的小提琴中改变了以下几行: var name = $('#abc').attr('name').split('[]').join(''); 基本上你必须从行的末尾删除括号,然后附加新文本。 此外,我还将您的ID更改为字母而不是数字,因为这是最佳做法。 DEMO I've changed the following line in your fiddle: var name = $('#abc').attr('name').split('[]').join(''); Basically yo

CF.NET平滑滚动面板 - bitblt即将出现空白(CF.NET Smooth-Scrolling Panel — bitblt is coming up blank)

内饰板是否隐形? 屏幕外? 或者是什么? 从HDC获取相关数据的唯一方法是通过正常的消息泵绘制它,如果它被隐藏或屏幕外,或者如果你手动绘制它,你显然不会这样做。 这是学习无闪烁Win32的一个很好的资源: http : //www.catch22.net/tuts/flicker Is the interior panel invisible? off screen? or what? The only way you'll get relevant data from it's HDC is

在MS CRM Workflow中更改状态消息的大小(Changing the size of status message in MS CRM Workflows)

我不相信可以定制。 你可能最好使用更短的消息。 My solution was to create a plugin that takes in the message and limits it to 2000 adding ... on the end.

TrackingArea中的NSPopUpButton - >从菜单中选择项目时退出鼠标(NSPopUpButton in a TrackingArea -> mouse exited when selecting an item from the menu)

尝试NSTrackingActiveInActiveApp而不是NSTrackingActiveInKeyWindow 。 我不确定这个,但是当菜单开始跟踪时,窗口可能会关闭键状态(但不是主要状态,这就是它的外观不会改变的原因),这样用户就可以使用键盘。 (您可以通过成为窗口的委托并响应几个委托消息来检查这一点。) 当然,这意味着您必须在处理用户的鼠标移动之前检查窗口是否为主窗口。 Try NSTrackingActiveInActiveApp instead of NSTrackingActi

Drupal主题()问题(Drupal theme() problem)

修复了以下内容: function_exists('search_theme') or drupal_load('module','search'); function_exists('template_preprocess_search_results') or module_load_include('inc','search','search.pages'); 我不喜欢它。 Fixed it with the following: function_exists('search_them

使用JavaScript在td中切换水平效果(toggle effect horizontal in td using JavaScript)

$(function () { $('.lblStyle').click (function () {$(".style1").slideToggle();}); }); <style type="text/css"> .style1 { width: 12%; } .lblStyle { width: 99%; } <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="cent

相关文章

更多

最新问答

更多
  • NumPy标量,广播和__iadd__方法(NumPy scalars, broadcasting and the __iadd__ method)
  • 快速排序算法输出错误(Getting wrong output for quicksort algorithm)
  • Rails管理员:没有Rails 4应用程序的编辑,显示或删除按钮(Rails Admin: No edit, show, or delete buttons for Rails 4 app)
  • 部分刷新问题触发两次(Issue with partial refresh triggered twice)
  • jsPlumb draggable element javascript函数(jsPlumb draggable element javascript function)
  • MVC4:ViewModel(带有radiobuttonlist)在HttpPost之后为空(MVC4: ViewModel (with radiobuttonlist) is empty after HttpPost)
  • 如何在同一帐户上设置“Dev repo”(在prod和团队之间)(How to set up a “Dev repo” (between the prod and the team) on the same account)
  • 如何在tcl中将eth0配置为发送方udp端口(how to configure eth0 as a sender udp port in tcl)
  • EF6.1 beta 1如何获得Tooling Consolidation功能?(EF6.1 beta 1 how to get the Tooling Consolidation feature?)
  • 适用于Windows和PHP 5.5的Phalcon(Phalcon for Windows and PHP 5.5)
  • 有没有办法忽略hg责任中的提交?(Is there a way to ignore a commit in hg blame?)
  • Desire2通过API学习访问学期的权限(Desire2Learn Permissions to Access Semesters Via API)
  • 从aspx将服务器的文件复制到另一台服务器(Copy a file of a server to another server from aspx)
  • 使用YSlow / Web Developer扩展程序确定页面大小(Figuring out page size with YSlow / Web Developer extension)
  • Select语句将字符串中的前7个字符与其他表中的其他7个字符进行比较(Select statement which compares first 7 chars in a string with other 7 chars in other table)
  • 检测对注册表的更改,防止更改等(Detect changes to registry, prevent changes, etc)
  • 用户的鼠标/键盘运动分析是否有特殊名称?(Does the analysis of mouse/keyboard motions of a user have a special name?)
  • 获取Rails中资源的路由列表(Get list of routes for a resource in Rails)
  • 用函数值除以数字(Divide a function value by a number)
  • 熊猫Python:如何从今天开始创建失效列?(Pandas Python: How to create lapse since today column?)
  • GDK Bug报告(GDK Bug Reports)
  • 困惑于在python中循环遍历列表(confused about looping through lists in python)
  • 'less'由'which'输出指定的文件('less' the file specified by the output of 'which')
  • 如何在ASP.NET中优化AJAX(How to optimize AJAX in ASP.NET)
  • 在文本文件中转换纪元时间(Convert epoch times in text file)
  • 表细胞伸展(Table cell stretching)
  • GridView控件(GridView Control)
  • 从构建定义文件控制pdb文件输出(Control pdb file output from build defintion file)
  • *将方法传递给类(*Passing a Method into a Class)
  • 如何在HttpReceiveHttpRequest()中使用HTTPS?(How to use HTTPS with HttpReceiveHttpRequest()?)