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

            source.ParseText(value);
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/POSH.Socrata.WP8;component/Views/PrivacyPolicy.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.tbkPrivacyPolicy = ((POSH.Socrata.WP8.Class.ScrollableTextBlock)(this.FindName("tbkPrivacyPolicy")));
     this.tbkLoadingData = ((System.Windows.Controls.TextBlock)(this.FindName("tbkLoadingData")));
 }
Exemple #3
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/POSH.Socrata.WP8;component/Views/PrivacyPolicy.xaml", System.UriKind.Relative));
     this.LayoutRoot       = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel     = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.tbkPrivacyPolicy = ((POSH.Socrata.WP8.Class.ScrollableTextBlock)(this.FindName("tbkPrivacyPolicy")));
     this.tbkLoadingData   = ((System.Windows.Controls.TextBlock)(this.FindName("tbkLoadingData")));
 }