public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/WitAISample;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ProgressBar = ((System.Windows.Controls.ProgressBar)(this.FindName("ProgressBar")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.WitText = ((System.Windows.Controls.TextBox)(this.FindName("WitText")));
     this.WitIntent = ((System.Windows.Controls.TextBlock)(this.FindName("WitIntent")));
     this.WitMicButton = ((Witai.WitMicButton)(this.FindName("WitMicButton")));
 }
Exemple #2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/WitAISample;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ProgressBar  = ((System.Windows.Controls.ProgressBar)(this.FindName("ProgressBar")));
     this.TitlePanel   = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.WitText      = ((System.Windows.Controls.TextBox)(this.FindName("WitText")));
     this.WitIntent    = ((System.Windows.Controls.TextBlock)(this.FindName("WitIntent")));
     this.WitMicButton = ((Witai.WitMicButton)(this.FindName("WitMicButton")));
 }