示例#1
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Prototype;component/AddressToCoordinates.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.cityLocationtxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("cityLocationtxt")));
     this.addressLocationtxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("addressLocationtxt")));
 }
示例#2
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Prototype;component/Login.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.user = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("user")));
     this.usertxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("usertxt")));
     this.Password1 = ((System.Windows.Controls.PasswordBox)(this.FindName("Password1")));
 }
示例#3
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Prototype;component/EmergencyServices.xaml", System.UriKind.Relative));
     this.appBarOkButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appBarOkButton")));
     this.appBarCancelButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appBarCancelButton")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.currentLocation = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("currentLocation")));
     this.mapWithMyLocation = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("mapWithMyLocation")));
 }
示例#4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Prototype;component/BookACab.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PanoramaControl = ((Microsoft.Phone.Controls.Panorama)(this.FindName("PanoramaControl")));
     this.item1 = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("item1")));
     this.cab_type = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("cab_type")));
     this.timePicker = ((Microsoft.Phone.Controls.TimePicker)(this.FindName("timePicker")));
     this.datePicker = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("datePicker")));
     this.item2 = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("item2")));
     this.currentLocationtxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("currentLocationtxt")));
     this.item3 = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("item3")));
     this.DestinationLocationtxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("DestinationLocationtxt")));
 }
示例#5
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Prototype;component/Register.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.AgeTxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("AgeTxt")));
     this.UserNametxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("UserNametxt")));
     this.Nictxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("Nictxt")));
     this.emailtxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("emailtxt")));
     this.phnetxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("phnetxt")));
     this.adresstxt = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("adresstxt")));
     this.Gender = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("Gender")));
     this.PasswordTxt = ((System.Windows.Controls.PasswordBox)(this.FindName("PasswordTxt")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SchedulerApp;component/View/NewTaskPage.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.categoriesListPicker = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("categoriesListPicker")));
     this.newTaskNameTextBox = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("newTaskNameTextBox")));
     this.Description_TextBox = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("Description_TextBox")));
     this.Password_TextBox = ((System.Windows.Controls.PasswordBox)(this.FindName("Password_TextBox")));
     this.appBarOkButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appBarOkButton")));
     this.appBarCancelButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appBarCancelButton")));
     this.appBarAlarmButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appBarAlarmButton")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SchedulerApp;component/View/AddNotification.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.reminderRadioButton = ((System.Windows.Controls.RadioButton)(this.FindName("reminderRadioButton")));
     this.titleTextBox = ((System.Windows.Controls.WatermarkTextBox)(this.FindName("titleTextBox")));
     this.beginTimeLabel = ((System.Windows.Controls.TextBlock)(this.FindName("beginTimeLabel")));
     this.beginDatePicker = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("beginDatePicker")));
     this.beginTimePicker = ((Microsoft.Phone.Controls.TimePicker)(this.FindName("beginTimePicker")));
     this.expirationTimeLabel = ((System.Windows.Controls.TextBlock)(this.FindName("expirationTimeLabel")));
     this.expirationDatePicker = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("expirationDatePicker")));
     this.expirationTimePicker = ((Microsoft.Phone.Controls.TimePicker)(this.FindName("expirationTimePicker")));
     this.onceRadioButton = ((System.Windows.Controls.RadioButton)(this.FindName("onceRadioButton")));
     this.weeklyRadioButton = ((System.Windows.Controls.RadioButton)(this.FindName("weeklyRadioButton")));
     this.dailyRadioButton = ((System.Windows.Controls.RadioButton)(this.FindName("dailyRadioButton")));
 }
        private Control GenerateWaterMarkedTextBox(PropertyInfo property, Binding binding)
        {
#if !SILVERLIGHT
            WatermarkTextBox txtBox = new WatermarkTextBox()
            {
                Margin = new Thickness(0, 3, 18, 3), Watermark = displays[property.Name].GetPrompt()
            };
            txtBox.IsReadOnly    = !(bindables[property.Name].Direction == BindingDirection.TwoWay);
            txtBox.TextAlignment = TextAlignment.Right;
            // Binding
            this.bindings.Add(property.Name, txtBox.SetBinding(TextBox.TextProperty, binding));
#else
            TextBox txtBox = new TextBox()
            {
                Margin = new Thickness(0, 3, 18, 3)
            };
            txtBox.IsReadOnly    = !(bindables[property.Name].Direction == BindingDirection.TwoWay);
            txtBox.TextAlignment = TextAlignment.Right;
            // Binding
            this.bindings.Add(property.Name, txtBox.SetBinding(TextBox.TextProperty, binding));
#endif
            return(txtBox);
        }