![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Is it possible to include XAML files into another XAML file? | .NET General | |||