我怎么能将我的pagetitle绑定到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" />
它不起作用? :|