扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
图1:Avalon RSS阅读器应用程序。 |
图2:建立一个新的AvalonNavigation应用程序。 |
<Page x:Class="Page1" xmlns="http://schemas.microsoft.com/winfx/avalon/2005" xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005" > <DockPanel xmlns="http://schemas.microsoft.com/winfx/avalon/2005" xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005" Background="Cornsilk" > |
<DockPanel.Resources> <XmlDataSource x:Key="RSSData" XPath="/rss/channel"> <rss version="2.0" xmlns=""> <channel> <title>DevX: Latest Published Articles</title> <link>http://www.devx.com</link> <description>Latest DevX Content</description> <language>en-us</language> <copyright>Copyright 2002 DevX</copyright> <docs>http://backend.userland.com/rss</docs> <lastBuildDate>Sun, 28 Aug 2005 23:36:13 PST</lastBuildDate> <image> <title>DevX</title> <url>http://services.devx.com/outgoing/devxwire.gif</url> <link>http://www.DevX.com</link> </image> <item> <title>Discover the Eclipse Modeling Framework (EMF) and Its Dynamic Capabilities</title> <description>Given a model, EMF can generate Java source code that will allow you to create, query, update, serialize, deserialize, validate, and track changes to instances of your models. EMF provides an efficient reflective API and allows you to work with dynamic, non-generated, models.</description> <link>http://www.devx.com/Java/Article/29093?trk=DXRSS_LATEST</link> <author> (Dave Steinberg) editorial@devx.com</author> <pubDate>Fri, 26 Aug 2005 19:43:34 PST</pubDate> </item> <item> <title>...</title> <description>...</description> <link>...</link> <author>...</author> <pubDate>...</pubDate> </item> <item> <title>...</title> <description>...</description> <link>...</link> <author>...</author> <pubDate>...</pubDate> </item> </channel> </rss> </XmlDataSource> |
<DataTemplate x:Key="RSSTemplate"> <TextBlock FontSize="Small"> <TextBlock.TextContent> <Binding XPath="title"/> </TextBlock.TextContent> </TextBlock> </DataTemplate> </DockPanel.Resources> |
图3:给Data控件绑定XML数据 |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者