示例#1
0
 public BuForumPage()
 {
     InitializeComponent();
     DataContext         = _forumpageviewmodel;
     this.ApplicationBar = (Microsoft.Phone.Shell.ApplicationBar)Resources["forum"];
     pgbar.Visibility    = Visibility.Collapsed;
     _popuppost          = new PopupPost();
 }
示例#2
0
 public BuThreadPage()
 {
     InitializeComponent();
     //设定数据上下文
     DataContext    = _threadview;
     ApplicationBar = (Microsoft.Phone.Shell.ApplicationBar)Resources["thread"];
     _popupreply    = new PopupPost();
     _popupreply.titleTextBox.Visibility = Visibility.Collapsed;
     //由于隐藏了title,所以缩小控件高度
     _popupreply.Height -= 72;
     pgbar.Visibility    = Visibility.Collapsed;
 }