Exemple #1
0
 private void UpdateWhatsHappeningWatermark(TwitViewModel viewModel)
 {
     if (viewModel.ActualTweetText.Length > 0 || this.NewTweetEdit.IsFocused)
     viewModel.WhatsHappeningVisibility = Visibility.Collapsed;
       else
     viewModel.WhatsHappeningVisibility = Visibility.Visible;
 }
Exemple #2
0
 private void TwitView_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (this.DataContext == null)
     return;
       this.viewModel = this.DataContext as TwitViewModel;
       this.InitialiseMessengerRegistrations();
       this.viewModel.LoadTweetViews(true);
       this.DataContextChanged -= new DependencyPropertyChangedEventHandler(this.TwitView_DataContextChanged);
 }