чтение из XML файла.
Есть XML файл TodaysSpecial.xml:
[HTML]
<?xml version="1.0" encoding="utf-8" ?>
<HEAD>
<Item>
<Name>Pizza Carbonara</Name>
<Ingridients>
Pizza crust, chopped onion, garlic, butter, flour, white pepper, milk, chicken bouillon, grated Parmesan cheese, sliced bacon, shredded Monterey Jack cheese, green onions.<br/>Recommended with white wine
</Ingridients>
</Item>
<Item>
<Name>Chiffon Cake</Name>
<Ingridients>Flour, white sugar, baking powder, salt, vegetable oil, egg yolks, vanilla extract, lemon extract, egg whites, cream of tartar, Butter</Ingridients>
</Item>
<Item>
<Name>Chocolate Cake</Name>
<Ingridients>Margarine, white sugar, eggs, vanilla extract, milk, flour, unsweetened cocoa powder, baking soda, salt</Ingridients>
</Item>
<Item>
<Name>Cilantro Potatoes</Name>
<Ingridients>Fresh cilantro, garlic, olive oil, potatoes, salt</Ingridients>
</Item>
<Item>
<Name>Fish on a Plank</Name>
<Ingridients>Cedar plank, mahi mahi fillets, teriyaki sauce, mangos, red bell pepper, green onions, fresh cilantro, jalapeno pepper, salt, pepper, garlic powder, lime juice, lemon juice, olive oil, chipotle seasoning, red pepper, hot-pepper sauce</Ingridients>
</Item>
<Item>
<Name>Potato Rosettes</Name>
<Ingridients>
Potatoes, shredded Cheddar cheese, egg, chopped green onion, sour cream, salt, white pepper.<br/>Recommended with white wine
</Ingridients>
</Item>
<Item>
<Name>Grilled Fish Tacos with Chipotle-Lime Dressing</Name>
<Ingridients>
Toppings: tortillas, tomatoes, cilantro, cabbage, limes. Dressing: light sour cream, cup adobo sauce, lime juice, lime zest, cumin, chili powder, seafood seasoning, salt, pepper. Marinade: olive oil, white vinegar, lime juice, lime zest, honey, garlic, cumin, chili powder, seafood seasoning, black pepper, pepper sauce, tilapia fillets<br/>Recommended with white wine
</Ingridients>
</Item>
</HEAD>
[/HTML]
Есть Листбокс, в котором указаны названия блюд и есть текст блок, в котором указаны ингридиенты.
При нажатом имени блюда в лист боксе должны отобразиться его ингридиенты.
У меня проблема - ингридиенты отображаются только для блюда, стоящего первым по списку. Какое бы блюдо не было выбрано, ингридиенты не меняются.
Вот мой код:
[HTML]
<s:SurfaceWindow.Resources>
<ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0" ImageSource="pack://application:,,,/Resources/SurfaceWindow4Background.jpg"/>
<XmlDataProvider Source="/TodaysSpecial.xml" x:Key="xdata1" XPath="/HEAD/Item"></XmlDataProvider>
</s:SurfaceWindow.Resources>
......................................
<Grid Background="{StaticResource WindowBackground}" DataContext="{Binding Source={StaticResource xdata1}}">
<TextBlock Margin="330,101,302,0" TextWrapping="Wrap" Text="
Pizza crust, chopped onion, garlic, butter, flour, white pepper, milk, chicken bouillon, grated Parmesan cheese, sliced bacon, shredded Monterey Jack cheese, green onions.Recommended with white wine
		" Height="125" VerticalAlignment="Top" FontFamily="./Fonts\#Forte" FontSize="16" HorizontalAlignment="Left"/>
<s:SurfaceListBox IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding Source={StaticResource xdata1}}" DisplayMemberPath="Name" Foreground="Black" HorizontalAlignment="Left" Margin="8,97,0,0" VerticalAlignment="Top" Width="251.5" Height="129" Cursor="Hand" FontFamily="./Fonts\#Forte">
</s:SurfaceListBox>
</Grid>
[/HTML]
Подскажите, пожайлуста, где ошибка.
спасибо