void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ViewChatUserControl = ((dodicall.View.ViewChat)(target));
                return;

            case 2:
                this.ListBoxChat = ((System.Windows.Controls.ListBox)(target));

            #line 11 "..\..\..\View\ViewChat.xaml"
                this.ListBoxChat.SizeChanged += new System.Windows.SizeChangedEventHandler(this.ListBoxChat_SizeChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        ///<summary> Конструктор </summary>
        public ViewContact()
        {
            InitializeComponent();

            CurrentViewContact = this;

            DataContext = _viewModelContact;

            _viewModelContact.PropertyChanged += ViewModelContactOnPropertyChanged;

            ContextMenuFilterContact.PlacementTarget  = ImageFilterContact;
            ContextMenuFilterContact.HorizontalOffset = 3;
            ContextMenuFilterContact.VerticalOffset   = 3;
            ContextMenuFilterContact.Placement        = PlacementMode.RelativePoint;

            GridContact_Click(null, null);

            ChangeCountInvateUnread();

            var viewChat = new ViewChat();

            viewChat.CountUnreadMessageChanged += ViewChatOnCountUnreadMessageChanged;

            GridChat.Children.Add(viewChat);

            var viewCall = new ViewCall();

            viewCall.PropertyChanged += ViewCallOnPropertyChanged;

            GridCall.Children.Add(viewCall);

            ViewChatOnCountUnreadMessageChanged(null, ((ViewModelChat)viewChat.DataContext).CurrentListModelChat.Sum(obj => obj.NewMessagesCount));

            ViewCallOnPropertyChanged(viewCall, new PropertyChangedEventArgs("CountMissedCall"));

            GridDialpad.Children.Add(new ViewDialpad());

            _viewModelContact.DeleteModelContactSuccessful += (sender, contact) => DeleteContactListBoxContact(contact);
        }