![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 |
| | #2 (permalink) |
| 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 > > |
| |
| |
![]() |
| 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 |