Skip to content

Instantly share code, notes, and snippets.

@noahrichards
Created June 12, 2009 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noahrichards/128978 to your computer and use it in GitHub Desktop.
Save noahrichards/128978 to your computer and use it in GitHub Desktop.
// Make the background goldenrod yellow :)
[Export(typeof(IWpfTextViewCreationListener))]
[ContentType("text")]
[TextViewRole(PredefinedTextViewRoles.Document)]
internal sealed class CreationListener : IWpfTextViewCreationListener
{
public void TextViewCreated(IWpfTextView textView, IEnvironment context)
{
textView.Background = Brushes.PaleGoldenrod;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment