Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - XAML RSS Reader problem

 
 
Old 08-25-2006   #1 (permalink)
sparrez@gmail.com


 
 

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


My System SpecsSystem Spec
Old 08-28-2006   #2 (permalink)
=?Utf-8?B?SmltIE1hbmdhbHk=?=


 
 

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
>
>

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Is it possible to include XAML files into another XAML file? .NET General


Vista Forums 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 Ltd

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