Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

XAML RSS Reader problem

Closed Thread
 
Thread Tools Display Modes
Old 08-25-2006   #1 (permalink)
sparrez@gmail.com
Guest


 

XAML RSS Reader problem

Trying to get into WPF by re-creating one of the several RSS Reader's
out there. But I have one MAJOR problem.

Creating the XAML app exactly as shown in the demos/tutorials but when
I run the app or redering it in XAMLPad NOTHING happens...

Is there anything i need to be aware off? I've tried both online and
local stored rss/xml files.

Also when trying to add an rss feed as a Data Source i Interactive
Designer i get this error "Error reading the XML data source file. The
data source could not be cerated."

I'm using the June CTP.

--
SparreZ

Old 08-28-2006   #2 (permalink)
=?Utf-8?B?SmltIE1hbmdhbHk=?=
Guest


 

RE: XAML RSS Reader problem

Here is some code that works for me:
<Window.Resources>
<XmlDataProvider
Source="http://www.microsoft.com/presspass/rss/TopStory.xml" x:Key="rssFeed"/>
<DataTemplate x:Key="key1">
<Border Background="Aqua" BorderBrush="Black" BorderThickness="3">
<TextBlock Text="{Binding XPath=title}"/>
</Border>
</DataTemplate>
</Window.Resources>
<StackPanel Orientation="Vertical" DataContext="{StaticResource rssFeed}">
<Label Content="{Binding XPath=/rss/channel/title}" />
<Label Content="{Binding XPath=/rss/channel/description}" />
<DockPanel DataContext="{Binding Source={StaticResource rssFeed},
XPath=/rss/channel/item}">
<ListBox DockPanel.Dock="Left" ItemsSource="{Binding}"
IsSynchronizedWithCurrentItem="True" Width="300"
ItemTemplate="{StaticResource key1}"/>
<TextBox Width="300" Text="{Binding XPath=description}"
TextWrapping="Wrap"/>
</DockPanel>
</StackPanel>

Jim

"sparrez@gmail.com" wrote:

> Trying to get into WPF by re-creating one of the several RSS Reader's
> out there. But I have one MAJOR problem.
>
> Creating the XAML app exactly as shown in the demos/tutorials but when
> I run the app or redering it in XAMLPad NOTHING happens...
>
> Is there anything i need to be aware off? I've tried both online and
> local stored rss/xml files.
>
> Also when trying to add an rss feed as a Data Source i Interactive
> Designer i get this error "Error reading the XML data source file. The
> data source could not be cerated."
>
> I'm using the June CTP.
>
> --
> SparreZ
>
>

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to include XAML files into another XAML file? star-italia .NET General 6 06-12-2008 04:56 AM
XAML and binding problem Lloyd Dupont Avalon 5 06-15-2007 08:43 AM
problem in accessing a wcf service through wpf-xaml ram Avalon 0 04-19-2007 03:06 AM
How to deploy an XAML-based App with its XAML-UI-File? Solveigh Avalon 11 11-08-2006 07:50 AM
Xaml KeyBinding problem CSkinner Avalon 6 01-10-2006 03:52 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50