public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Project024_Bomberman;component/ControlFolder/Control.xaml", System.UriKind.Relative)); this.lbUsers = ((System.Windows.Controls.ListBox)(this.FindName("lbUsers"))); this.tabChat = ((System.Windows.Controls.TabControl)(this.FindName("tabChat"))); this.tabItem1 = ((System.Windows.Controls.TabItem)(this.FindName("tabItem1"))); this.chatWindow1 = ((Project024_Bomberman.ControlFolder.ChatWindow)(this.FindName("chatWindow1"))); this.grid1 = ((System.Windows.Controls.Grid)(this.FindName("grid1"))); this.btnSend = ((System.Windows.Controls.Button)(this.FindName("btnSend"))); this.txtMessage = ((System.Windows.Controls.TextBox)(this.FindName("txtMessage"))); this.btnUsers = ((System.Windows.Controls.Button)(this.FindName("btnUsers"))); this.btnAdd = ((System.Windows.Controls.Button)(this.FindName("btnAdd"))); this.lbRequests = ((System.Windows.Controls.ListBox)(this.FindName("lbRequests"))); this.btnPlay = ((System.Windows.Controls.Button)(this.FindName("btnPlay"))); this.btnRequest = ((System.Windows.Controls.Button)(this.FindName("btnRequest"))); }
private void UpdateLayout(ChatWindow cw) { cw.myScrollViewer.UpdateLayout(); cw.myScrollViewer.ScrollToVerticalOffset(cw.txtChat.ActualHeight); cw.myScrollViewer.UpdateLayout(); }