BorderBrush를 정의하는 몇 가지 기본 컴파일 문제가 있습니다. 이 같은 borderbrush을 정의BorderBrush를 정의하는 몇 가지 기본적인 컴파일 문제가 있습니다.
http://msdn.microsoft.com/en-us/library/system.windows.controls.border.borderbrush.aspx 상태 :
myBorder1 = new Border();
myBorder1.BorderBrush = Brushes.SlateBlue;
하지만 내 코드에서, 내가
border1.BorderBrush = Brushes.SlateBlue;
내가 Error 1 The name 'Brushes' does not exist in the current context
얻을 시도하고 내가 네임 스페이스 System.Windows.Controls
을 포함했다 파일의 상단에서 "using"문으로 도 마찬가지입니다. 프로젝트 참조. 내가 무엇이 누락 되었습니까?
에게없는
을 시도합니다. –Silverlight