Example #1
0
        private static void OnItemsSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ChatBox target = d as ChatBox;

            target.lsb.ItemsSource = e.NewValue as IEnumerable;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridLayout = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.rectTemp = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.tbMemberCount = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.ptbtnAppendGroupNotice = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 65 "..\..\..\..\Views\Panels\ChatView.xaml"
                this.ptbtnAppendGroupNotice.Click += new System.Windows.RoutedEventHandler(this.ptbtnAppendGroupNotice_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ptbtnAppend = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 85 "..\..\..\..\Views\Panels\ChatView.xaml"
                this.ptbtnAppend.Click += new System.Windows.RoutedEventHandler(this.ptbtnAppend_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.rectMsgW = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 7:
                this.chatBox = ((IMClient.Views.Controls.ChatBox)(target));
                return;

            case 8:
                this.btnApply = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 107 "..\..\..\..\Views\Panels\ChatView.xaml"
                this.btnApply.Click += new System.Windows.RoutedEventHandler(this.btnApply_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnAt = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 137 "..\..\..\..\Views\Panels\ChatView.xaml"
                this.btnAt.Click += new System.Windows.RoutedEventHandler(this.btnAt_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.btnHistoryMsg = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 167 "..\..\..\..\Views\Panels\ChatView.xaml"
                this.btnHistoryMsg.Click += new System.Windows.RoutedEventHandler(this.btnHistoryMsg_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnSend = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.msgEditor = ((IMClient.Views.Controls.MessageEditor)(target));
                return;

            case 13:
                this.btnClear = ((System.Windows.Controls.Button)(target));
                return;

            case 14:
                this.btnHistory = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 207 "..\..\..\..\Views\Panels\ChatView.xaml"
                this.btnHistory.Click += new System.Windows.RoutedEventHandler(this.btnHistory_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.ppBD = ((System.Windows.Controls.Border)(target));
                return;

            case 16:
                this.scale = ((System.Windows.Media.ScaleTransform)(target));
                return;
            }
            this._contentLoaded = true;
        }