Inheritance: System.Windows.Controls.UserControl
Beispiel #1
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MetroFanfou;component/MainPage.xaml", System.UriKind.Relative));
     this.rootView       = ((System.Windows.Controls.Grid)(this.FindName("rootView")));
     this.TrayPanel      = ((System.Windows.Controls.StackPanel)(this.FindName("TrayPanel")));
     this.performanceBar = ((Microsoft.Phone.Controls.PerformanceProgressBar)(this.FindName("performanceBar")));
     this.imgLogo        = ((System.Windows.Controls.Image)(this.FindName("imgLogo")));
     this.tbAccountName  = ((System.Windows.Controls.TextBlock)(this.FindName("tbAccountName")));
     this.PivotMain      = ((Microsoft.Phone.Controls.Pivot)(this.FindName("PivotMain")));
     this.homeItem       = ((MetroFanfou.Controls.StatusList)(this.FindName("homeItem")));
     this.replyItem      = ((MetroFanfou.Controls.StatusList)(this.FindName("replyItem")));
     this.publicItem     = ((MetroFanfou.Controls.StatusList)(this.FindName("publicItem")));
     this.mSetting       = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mSetting")));
     this.mLogout        = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mLogout")));
     this.mAbout         = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mAbout")));
     this.mHelp          = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mHelp")));
     this.mExit          = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mExit")));
     this.btnReload      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnReload")));
     this.btnAdd         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnAdd")));
     this.btnProfile     = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnProfile")));
     this.btnSearch      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnSearch")));
 }
Beispiel #2
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MetroFanfou;component/MainPage.xaml", System.UriKind.Relative));
     this.rootView = ((System.Windows.Controls.Grid)(this.FindName("rootView")));
     this.TrayPanel = ((System.Windows.Controls.StackPanel)(this.FindName("TrayPanel")));
     this.performanceBar = ((Microsoft.Phone.Controls.PerformanceProgressBar)(this.FindName("performanceBar")));
     this.imgLogo = ((System.Windows.Controls.Image)(this.FindName("imgLogo")));
     this.tbAccountName = ((System.Windows.Controls.TextBlock)(this.FindName("tbAccountName")));
     this.PivotMain = ((Microsoft.Phone.Controls.Pivot)(this.FindName("PivotMain")));
     this.homeItem = ((MetroFanfou.Controls.StatusList)(this.FindName("homeItem")));
     this.replyItem = ((MetroFanfou.Controls.StatusList)(this.FindName("replyItem")));
     this.publicItem = ((MetroFanfou.Controls.StatusList)(this.FindName("publicItem")));
     this.mSetting = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mSetting")));
     this.mLogout = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mLogout")));
     this.mAbout = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mAbout")));
     this.mHelp = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mHelp")));
     this.mExit = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mExit")));
     this.btnReload = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnReload")));
     this.btnAdd = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnAdd")));
     this.btnProfile = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnProfile")));
     this.btnSearch = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnSearch")));
 }