コード例 #1
0
 public void OpenItem(RssFeedItem selectedItem)
 {
     if (selectedItem != null)
     {
         PhoneApplicationService.Current.State[Constants.OpenFeed] = selectedItem;
         ((PhoneApplicationFrame) Application.Current.RootVisual).Navigate(Constants.FeedItemPageUri);
     }
 }
コード例 #2
0
        public FeedItemPage()
        {
            InitializeComponent();
            _feedItem = (RssFeedItem) PhoneApplicationService.Current.State[Constants.OpenFeed];
            DataContext =  _feedItem;
             PhoneApplicationService.Current.State.Remove(Constants.OpenFeed);

             Loaded += FeedItemPageLoaded;
        }