본문 바로가기

삽질/WP7.C#6

[WP7] 비트맵을 브러시로 비트맵을 브러시로 ImageBrush ib = new ImageBrush();ib.ImageSource = new BitmapImage(new Uri("이미지", UriKind.Relative));img.Foreground = ib; 2014. 6. 30.
[WP7] Horizontal ListBox 리스트박스 가로로 보여주기 2013. 8. 9.
[WP7] 윈도우폰 TextBlock New Line 추가 TextBlock Text="첫번째 문장   두번째 문장"/> 2012. 7. 27.
[WP7] 윈도우폰 설정 된 테마 색상 가져오기 - Background : Dark(Black), Light(White) 1) Color themeColor = (Color)Application.Current.Resources["PhoneBackgroundColor"]; if (themeColor.ToString() == "#FF000000") ; // "Dark"; else if (themeColor.ToString() == "#FFFFFFFF") ; // "Light"; 2) // 글자 색상이 흰색이라면 현재 테마는 Dark, 검은색이라면 Light Color themeColor = (Color)Application.Current.Resources[" PhoneForegroundColor "]; if (themeColor.ToString() == .. 2012. 4. 4.
[WP7] 문자와 문자 사이의 문자 가져오기 public static string GetMiddleString(string str, string begin, string end) { if (string.IsNullOrEmpty(str)) { return null; } string result = null; // 해당 글자부터 끝까지 찾는거면 if (end == "") { str = str.Substring(str.IndexOf(begin) + begin.Length); if (str.Length > -1) result = str.Substring(0, str.Length); else result = str; return result; } if (str.IndexOf(begin) > -1) { str = str.Substring(str.IndexOf.. 2012. 4. 4.
[WP7] Visual Studio 2010 자주쓰는 단축키 Ctrl + K + C : 주석처리 Ctrl + K + U : 주석해제 Ctrl + K + D : 자동정렬 Ctrl + M + M : 코드블록 접기, 열기 Ctrl + K + K : 북마크 기능, 해제 Ctrl + K + N : 다음 북마크로 이동 Ctrl + HOME : 문서 처음 Ctrl + END : 문서 끝 Ctrl + ] : 괄호의 짝 찾기 Ctrl + L : 한 라인 잘라내기 Ctrl + F3 : 현재 커서의 문자열 찾기 (forward) Ctrl + Shift + F3 : 현재 커서의 문자열 찾기 (backward) F9 : 현재 라인 Breakpoint 지정/해제 F12 : 선언부로 가기 Alt + 마우스드래그 : 세로 영역 선택 2012. 4. 4.