微软已经将App Hub作为WP7和Xbox 360的发布门户推出.然而,对于Xbox 360,似乎只支持添加和Xbox Live独立游戏项目.鉴于最近在Xbox 360上推出了应用程序和应用程序市场,我希望也可以选择创建应用程序.
如果没有与微软的全面专业Xbox开发合作伙伴关系,是否有可能或者有可能为Xbox 360创建和发布应用程序?
这个例子来自这个Mozilla的页面.
main.xul
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="main.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<box id="num" class="labeledbutton" title="Number of Things:" value="52"/>
<button label="Show" oncommand="document.getElementById('num').showTitle(true)"/>
<button label="Hide" oncommand="document.getElementById('num').showTitle(false)"/>
</window>
Run Code Online (Sandbox Code Playgroud)
的main.css
box.okcancelbuttons {
-moz-binding: url('main.xml#labeledbutton');
}
Run Code Online (Sandbox Code Playgroud)
main.xml中
<?xml version="1.0"?>
<binding id="labeledbutton">
<content>
<xul:label xbl:inherits="value=title"/>
<xul:label xbl:inherits="value"/>
</content>
<implementation>
<method name="showTitle">
<parameter name="state"/>
<body>
if (state) document.getAnonymousNodes(this)[0].
setAttribute("style","visibility: visible");
else document.getAnonymousNodes(this)[0].
setAttribute("style","visibility: collapse");
</body>
</method>
</implementation>
</binding>
Run Code Online (Sandbox Code Playgroud)
单击按钮时为什么没有显示框?