/// <summary> /// Add a new major topic box to the conversation view /// </summary> /// <param name="title"></param> private void NewTopic(string title) { var topic = new TopicBox(); topic.Header = title; currentTopic = topic; Contents.Children.Add(topic); Scroller.ScrollToBottom(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Root = ((Frontend.ChatView.TopicBox)(target)); return; case 2: this.Contents = ((System.Windows.Controls.StackPanel)(target)); return; } this._contentLoaded = true; }