是否有Windows 8的Html解析器?我试着查看api参考,但没有运气.
我正在尝试从网站加载新闻列表,所以首先我请求获取新闻(使用缩略图),并使用绑定功能,我将Fetched新闻分配到我的列表框,其中包含图像(的ImageUrl).
<ListBox Name="lstNews">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="0,0,12,12" Width="180" Height="180">
<Grid.Background>
<ImageBrush ImageSource="{Binding ImageUrl}" />
</Grid.Background>
<StackPanel Background="#AA000000" VerticalAlignment="Bottom" Height="60" >
<TextBlock TextWrapping="Wrap" VerticalAlignment="Bottom" TextAlignment="Center" Text="{Binding Title}" />
</StackPanel>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Run Code Online (Sandbox Code Playgroud)
它工作正常,但UI冻结,直到图像出现.我该如何解决这个问题?
我正在尝试做一些简单的事情,但不知何故它对我不起作用,这是我的代码:
var items = html.DocumentNode.SelectNodes("//div[@class='itembox']");
foreach(HtmlNode e in items)
{
int x = items.count; // equals 10
HtmlNode node = e;
var test = e.SelectNodes("//a[@class='head']");// I need this to return the
// anchor of the current itembox
// but instead it returns the
// anchor of each itembox element
int y =test.count; //also equals 10!! suppose to be only 1
}
Run Code Online (Sandbox Code Playgroud)
我的html页面如下所示:
....
<div class="itembox">
<a Class="head" href="one.com">One</a>
</div>
<div class="itembox">
<a Class="head" href="two.com">Two</a>
</div>
<!-- 10 itembox elements-->
.... …Run Code Online (Sandbox Code Playgroud) 我正在读这本书"学习XNA 4.0",在第6章中,它教授如何使用XACT Audio文件播放声音.它要求我创建一个AudioEngine对象,但我找不到该类.的Audioengine
我有正确的使用声明(Microsoft.Xna.Framework.Audio)和正确的参考(microsoft.xna.framework.dll).
有没有人知道什么是错的?
.net ×1
asynchronous ×1
c# ×1
dispatcher ×1
html ×1
html-parsing ×1
url ×1
windows-8 ×1
xact ×1
xna ×1
xna-4.0 ×1
xpath ×1