public WhereAmI(IWpfTextView textView) { _textView = textView; _monitor = new FileNameMonitor(GetDocument()); Height = 20; ClipToBounds = true; Background = new SolidColorBrush(Colors.DarkSlateGray); var label = new Label { Background = new SolidColorBrush(Colors.DarkSlateGray), Foreground = new SolidColorBrush(Colors.White), }; label.SetBinding(ContentControl.ContentProperty, new Binding("FileName") { Source = _monitor }); Children.Add(label); ToolTip = "Click to open in explorer"; }