I am having some basic compile issues defining a BorderBrush in my Silverlight C# file.
http://msdn.microsoft.com/en-us/libr...rderbrush.aspx
states that you define a borderbrush like this:
but in my code, when I tryCode:myBorder1 = new Border(); myBorder1.BorderBrush = Brushes.SlateBlue;
I getCode:border1.BorderBrush = Brushes.SlateBlue;
and I have included the namespaceError 1 The name 'Brushes' does not exist in the current context
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?



Reply With Quote
Bookmarks