public ReviewPage() { InitializeComponent(); searchPopup = new Popup(); review = App.reviewPassed; if (review != null) { reviewParser = new ReviewHtmlParser(review); } var commentPullDector = new WP8PullToRefreshDetector(); commentPullDector.Bind(commentSelector); commentPullDector.Compression += commentDector_Compress; commentSelector.ItemRealized += comment_ItemRealized; LayoutRoot.DataContext = Settings.instance; }
public ReviewPage() { InitializeComponent(); searchPopup = new Popup(); review = App.reviewPassed; if (review != null) { Review r = Cache.getReview(review.id); if (r != null) { review = r; } reviewParser = new ReviewHtmlParser(review); reviewParser.reviewStackPanel = reviewStackPanel; reviewParser.reviewProgressBar = ReviewProgressBar; reviewParser.commentProgressBar = ReviewCommentProgressBar; reviewParser.button = loadMoreCommentButton; reviewParser.text = loadCommentText; reviewParser.border = border; reviewParser.movieText = movieText; commentSelector.ItemsSource = reviewParser.commentCollection; } }