Example #1
0
            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();
        }
Example #3
0
        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 AddHighlightingTextBox(HighlightingTextBox highlightingTextBox)
 {
     var panel = new StackPanel();
     panel.Children.Add(highlightingTextBox);
     AddChild(panel);
 }