为了开发目的,如何在模拟器中运行Windows RT(Windows 8的受限ARM版本)?这个问题包含两部分:
我注意到大多数(所有?).winmd文件的版本为255.255.255.255,如:
Windows,版本= 255.255.255.255,Culture = neutral,PublicKeyToken = null
Metro应用程序可以使用此版本号引用此类程序集.
Windows.winmd本身也引用了:
mscorlib,版本= 255.255.255.255,Culture = neutral,PublicKeyToken = b77a5c561934e089
但是,据我所知,具有此版本号的程序集不存在.
此版本号是否具有特殊含义?有没有这方面的文件?
我的应用程序有一个带GridLayout的ListView.我现在正在尝试将ListView组引入我的应用程序.比如说,数据源通常包含Group1,Group2和Group3.我想一直显示所有3组,无论是否有元素.当组中没有元素时,我想在组标题下显示"空组"消息.
我认为WinRT处理它的默认方式不是显示空组,在许多场景中它很有意义.为此,我知道当没有数据时我可能会在列表视图中添加一个虚拟项目,但这有点像hacky.
那么,有更好的方法吗?
在我使用Visual Studio 11 Express Beta编写的Windows 8应用程序中,我无法使用ArrayList.这是我的代码:
using System.Collections;
ArrayList al = new ArrayList();
Run Code Online (Sandbox Code Playgroud)
编译错误:
找不到类型或命名空间名称'ArrayList'(您是否缺少using指令或程序集引用?)
这是新的东西吗?我喜欢ArrayLists :)
在Windows 8 Metro应用程序中,是否可以创建ScrollViewer,在到达视图中的最后一项时,它会循环回到视图中的第一项?如果是这样,我怎样才能达到这个效果?
Windows 8或Windows Phone 8中是否有WinRT API来使用振动功能?
我发现在Windows 8应用程序中,当导航回此页面时,总是会再次调用Page的构造函数,但在Windows Phone 7应用程序中并非如此.
由于这种行为,该页面的所有属性都会丢失,您需要以某种方式存储它们并在重新激活页面后重新分配它们.目前我正在使用该SaveState方法保存数据并在LoadState方法中重新分配数据.这两种方法都内置在Grid/Split App示例中.
我想知道为什么它是这样设计的,如果有更好的方法来维护页面的实例?
windows-8 windows-runtime windows-store winrt-xaml windows-store-apps
当ViewModel中出现触发器时,我遇到了一个问题,SelectedItem(参数)来自之前选择的Item.我需要新选择的项目作为selectionChanged的参数.
我是WP8的新手.下面是代码
<toolkit:ListPicker Header="Background"
ExpansionMode="FullscreenOnly"
Template="{StaticResource ListPickerControlTemplate}"
VerticalAlignment="Top"
ItemsSource="{Binding Path=Buildings.ObjectList}"
Margin="0"
x:Name="buldings"
Padding="0">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<i:InvokeCommandAction Command="{Binding Path=BuildingSelectionCommand}"
CommandParameter="{Binding Path=SelectedItem, ElementName=buldings}" />
</i:EventTrigger>
</i:Interaction.Triggers>
Run Code Online (Sandbox Code Playgroud)
谢谢Vinod
我试图在可视状态的VisualState.Setters中通过XAML更改控件的RelativePanel附加属性,但属性不会更改,因此我创建了一个依赖项属性,以便通过代码进行测试,两者都没有.
有没有办法刷新到一组新的值,如:
<VisualState.Setters>
<Setter Target="TimestablesControl.RelativePanel.RightOf" Value=""/>
<Setter Target="TimestablesControl.RelativePanel.AlignRightWithPanel" Value="false"/>
<Setter Target="TimestablesControl.RelativePanel.AlignLeftWithPanel" Value="true"/>
</VisualState.Setters>
Run Code Online (Sandbox Code Playgroud)
并使视图更"响应"?
xaml attached-properties win-universal-app windows-10 uwp-xaml
我正在使用Windows 10 10240 Univasal windows应用程序,当我使用Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamilyVersion获取deivce版本时,它返回一个字符串"2814750438211605"而不是版本格式(major.minor.revision.build) ).谁能告诉我字符串"2814750438211605"是什么意思?
windows-8 ×7
xaml ×3
c# ×2
windows-10 ×2
winrt-xaml ×2
.net ×1
arm ×1
c++ ×1
emulation ×1
eventtrigger ×1
mvvm ×1
uwp-xaml ×1
windows ×1
windows-rt ×1
winjs ×1