locked
I am having some basic compile issues defining a BorderBrush. RRS feed

  • Question

  • I am having some basic compile issues defining a BorderBrush.
    http://msdn.microsoft.com/en-us/library/system.windows.controls.border.borderbrush.aspx
    states that you define a borderbrush like this:
    myBorder1 = new Border();
    myBorder1.BorderBrush = Brushes.SlateBlue;
    but in my code, when I try
    border1.BorderBrush = Brushes.SlateBlue;
    I get
    Error 1 The name 'Brushes' does not exist in the current context
    and I have included the namespace
    System.Windows.Controls
    as a "using" statement at the top of the file
    as well as a Reference to the project.
    What am I missing?

    Web Master and Programmer
    Thursday, October 20, 2011 6:06 PM

Answers

  • Hi Bill,


    Thanks for your post.

    Per your description, we'd suggest you posting your question in the programm language corresponding forums.

    If you are using C #, you can post your question in the msdn Visual C# forums.

    If you are using C++, just post your question in the visual C++ forums.

    ...


    Thanks
    Liam Huang
    STO Application Team
    Server and Tools Online Operations Team
    Friday, October 21, 2011 2:45 AM