как я могу привязать мой заголовок страницы к результату linq? если у меня есть этот код:
var data = from query in loadedData.Descendants("article")
select new article
{
Title = (string)query.Element("title").Value,
SubTitle = (string)query.Element("subtitle").Value,
Content = (string)query.Element("content").Value
};
если я использую:
<TextBlock x:Name="PageTitle" Text="{Binding Title}" Margin="9,-7,0,0" Style=" {StaticResource PhoneTextTitle1Style}" Foreground="White" />
это не работает? : |