public void AddHighlightingTextBox(HighlightingTextBox highlightingTextBox) { var panel = new StackPanel(); panel.Children.Add(highlightingTextBox); AddChild(panel); }
public void SetUp() { var window = new TestWindow(); box = new HighlightingTextBox { Width = 300, Height = 30, ShouldHighlight = TestHighlightCondition }; internalTextBox = box.Children.OfType<TextBox>().Single(); window.AddHighlightingTextBox(box); window.Show(); }
public void SetUp() { var window = new TestWindow(); box = new HighlightingTextBox { Width = 300, Height = 30, ShouldHighlight = TestHighlightCondition }; internalTextBox = box.Children.OfType <TextBox>().Single(); window.AddHighlightingTextBox(box); window.Show(); }