예제 #1
0
        private static void OnWatermarkPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            WatermarkedTextBox watermarkTextBox = sender as WatermarkedTextBox;

            if (watermarkTextBox != null && watermarkTextBox.WatermarkContent != null)
            {
                watermarkTextBox.DetermineWatermarkContentVisibility();
            }
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/CircularRecorderApp;component/SaveRecording.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this._fileNameTextBox = ((WatermarkedTextBoxControl.WatermarkedTextBox)(this.FindName("_fileNameTextBox")));
     this._errorTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("_errorTextBlock")));
 }
예제 #3
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/BusCon;component/Views/StationsView.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.Pivot = ((Microsoft.Phone.Controls.Pivot)(this.FindName("Pivot")));
     this.PivotItemFavorites = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("PivotItemFavorites")));
     this.PivotItemSearch = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("PivotItemSearch")));
     this.SearchGrid = ((System.Windows.Controls.Grid)(this.FindName("SearchGrid")));
     this.SearchText = ((WatermarkedTextBoxControl.WatermarkedTextBox)(this.FindName("SearchText")));
     this.FindStations = ((System.Windows.Controls.Button)(this.FindName("FindStations")));
     this.SearchProgressBar = ((System.Windows.Controls.ProgressBar)(this.FindName("SearchProgressBar")));
     this.resultgrid = ((System.Windows.Controls.Grid)(this.FindName("resultgrid")));
     this.listresult = ((System.Windows.Controls.ListBox)(this.FindName("listresult")));
     this.PivotItemNearby = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("PivotItemNearby")));
     this.locateGrid = ((System.Windows.Controls.Grid)(this.FindName("locateGrid")));
     this.Position = ((System.Windows.Controls.TextBlock)(this.FindName("Position")));
     this.Progress2 = ((System.Windows.Controls.ProgressBar)(this.FindName("Progress2")));
     this.resultgrid2 = ((System.Windows.Controls.Grid)(this.FindName("resultgrid2")));
     this.listresult2 = ((System.Windows.Controls.ListBox)(this.FindName("listresult2")));
 }