来自linq结果的pagetitle

时间:2012-02-21 01:26:56

标签: windows-phone-7

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

0 个答案:

没有答案