private static void OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ScrollableTextBlock source = (ScrollableTextBlock)d;
            string value = (string)e.NewValue;

            source.ParseText(value);
        }
Example #2
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/TuneYourMood;component/TermsPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.scrollViewer1 = ((System.Windows.Controls.ScrollViewer)(this.FindName("scrollViewer1")));
     this.termsOfUse = ((Phone.Controls.ScrollableTextBlock)(this.FindName("termsOfUse")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/wp7rt-client;component/Views/MovieDescription.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.movieTitile = ((System.Windows.Controls.TextBlock)(this.FindName("movieTitile")));
     this.image1 = ((System.Windows.Controls.Image)(this.FindName("image1")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.MovieDescriptionText = ((Phone.Controls.ScrollableTextBlock)(this.FindName("MovieDescriptionText")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.MovieTitleMedium = ((System.Windows.Controls.TextBlock)(this.FindName("MovieTitleMedium")));
     this.Reviews = ((System.Windows.Controls.Button)(this.FindName("Reviews")));
     this.Clips = ((System.Windows.Controls.Button)(this.FindName("Clips")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/wp7rt-client;component/Views/MovieDetailedView.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.movieTitile = ((System.Windows.Controls.TextBlock)(this.FindName("movieTitile")));
     this.image1 = ((System.Windows.Controls.Image)(this.FindName("image1")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.BackgroundTitle = ((System.Windows.Shapes.Rectangle)(this.FindName("BackgroundTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.poster = ((System.Windows.Controls.Image)(this.FindName("poster")));
     this.Runtime = ((System.Windows.Controls.TextBlock)(this.FindName("Runtime")));
     this.MPAA = ((System.Windows.Controls.TextBlock)(this.FindName("MPAA")));
     this.Year = ((System.Windows.Controls.TextBlock)(this.FindName("Year")));
     this.DVD = ((System.Windows.Controls.TextBlock)(this.FindName("DVD")));
     this.InTheaters = ((System.Windows.Controls.TextBlock)(this.FindName("InTheaters")));
     this.Genres = ((System.Windows.Controls.TextBlock)(this.FindName("Genres")));
     this.CriticsPerCent = ((System.Windows.Controls.TextBlock)(this.FindName("CriticsPerCent")));
     this.AudiencePerCent = ((System.Windows.Controls.TextBlock)(this.FindName("AudiencePerCent")));
     this.RatingImage = ((System.Windows.Controls.Image)(this.FindName("RatingImage")));
     this.Directors = ((System.Windows.Controls.TextBlock)(this.FindName("Directors")));
     this.Cast = ((System.Windows.Controls.TextBlock)(this.FindName("Cast")));
     this.Consensus = ((Phone.Controls.ScrollableTextBlock)(this.FindName("Consensus")));
     this.PageTitle1 = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle1")));
     this.DirectLink = ((System.Windows.Controls.Button)(this.FindName("DirectLink")));
 }