Beispiel #1
0
        private static void OnTitleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ReplyUserUC replyUserUc = d as ReplyUserUC;

            if (replyUserUc == null)
            {
                return;
            }
            // ISSUE: explicit reference operation
            string newValue = e.NewValue as string;

            replyUserUc.textBlockTitle.Text = (!string.IsNullOrEmpty(newValue) ? newValue : "");
            replyUserUc.FireTitleChangedEvent();
        }
Beispiel #2
0
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/VKClient.Common;component/UC/NewMessageUC.xaml", UriKind.Relative));
     this.mentionPicker             = (MentionPickerUC)base.FindName("mentionPicker");
     this.panelReply                = (StackPanel)base.FindName("panelReply");
     this.checkBoxAsCommunity       = (CheckBox)base.FindName("checkBoxAsCommunity");
     this.textBlockReply            = (TextBlock)base.FindName("textBlockReply");
     this.ucReplyUser               = (ReplyUserUC)base.FindName("ucReplyUser");
     this.scrollNewMessage          = (ScrollViewer)base.FindName("scrollNewMessage");
     this.ucNewPost                 = (NewPostUC)base.FindName("ucNewPost");
     this.borderEmoji               = (Border)base.FindName("borderEmoji");
     this.ellipseHasStickersUpdates = (Ellipse)base.FindName("ellipseHasStickersUpdates");
     this.borderHoldToRecord        = (Border)base.FindName("borderHoldToRecord");
     this.borderSend                = (Border)base.FindName("borderSend");
     this.borderVoice               = (Border)base.FindName("borderVoice");
     this.ucAudioRecorder           = (AudioRecorderUC)base.FindName("ucAudioRecorder");
     this.ucStickersAutoSuggest     = (StickersAutoSuggestUC)base.FindName("ucStickersAutoSuggest");
     this.panelControl              = (TextBoxPanelControl)base.FindName("panelControl");
 }