전체 글501 WPF & C# - 도형 드래그 리사이즈 ( Element / 변형 / DragMove / resize / button ) WPF & C# - 도형 드래그 리사이즈 ( Element / 변형 / DragMove / resize / button ) 관련글 2017/11/21 - [Programing (프로그래밍)/VB.NET] - 【 VB.NET 】- 버튼 드래그 이동 하기 ( Dragmove ) 2017/10/23 - [Programing (프로그래밍)/WPF & C# (C Sharp)] - WPF & C# (C Sharp) - 마우스 드래그로 윈도우 창 이동하기 ( window / drag move 드래그 무브 ) 도형 드래그 이동하기 1234567891011121314151617181920212223242526272829303132333435363738394041424344double preWidth; // 도형 가로do.. 2018. 5. 2. WPF & C# - Grid 열과 행으로 나누기 ( RowDefinitions / ColumnDefinitions ) WPF & C# - Grid 열과 행으로 나누기 ( RowDefinitions / ColumnDefinitions ) Grid (열,행으로 나누기) 코드로 원하는 위치에 객체 삽입하기 MainWindow.xaml.cs btn.Visibility = Visibility.Collapsed; Grid.SetRow(btn, 0); Grid.SetColumn(btn, 0); btn.Visibility = Visibility.Visible; 참고 https://insurang.tistory.com/534 WPF & C# - 열행 맞추어 Grid 생성하기 ( makeGrid / ColumnDefinitions / RowDefinitions ) WPF & C# - 열행 맞추어 Grid 생성하기 ( makeGrid / .. 2018. 5. 1. WPF & C# - 네이밍 규칙 WPF & C# - 네이밍 규칙 컨트롤 ( Control ) Button btn Checkbox chk CheckBoxList cbl DataGrid dtg DataList dtl DropDownList ddl Hyperlink hlk Image img ImageButton imb Label lbl ListBox lst Panel pnl PlaceHolder phd RadioButton rdo RadioButtonList rbl Repeater rep Table tbl TextBox txt Validators va 출처 : https://blog.naver.com/krinlion 출처 : https://genycho.blog.me/220946849338 2018. 5. 1. WPF & C# - OpenFileDialog (다이어로그) WPF & C# - OpenFileDialog (다이어로그) OpenFileDialog (다이어로그) 사용하기 123456OpenFileDialog dialog = new OpenFileDialog();dialog.Filter = "Image File|*.jpg;*.jpeg;*.png;*.gif;*.bmp";if (dialog.ShowDialog().GetValueOrDefault()){ this.mdaPlayer.Source = new Uri(dialog.FileName, UriKind.RelativeOrAbsolute);}Colored by Color Scriptercs 참고자료https://msdn.microsoft.com/ko-kr/library/system.windows.forms.filedia.. 2018. 5. 1. WPF & C# - 하위디렉토리 및 파일 삭제하기 ( 하위폴더 / DiretoryInfo ) WPF & C# - 하위디렉토리 및 파일 삭제하기 ( 하위폴더 / DiretoryInfo ) 하위 디렉토리 파일 및 폴더 유무 상관없이 삭제하기 12DirectoryInfo di = new DirectoryInfo(dir);di.Delete(true); // true 넣으면 파일 존재시에도 무조건 삭제cs 하위 디렉토리에 파일이 없을때에만 삭제하기 123456789101112131415161718192021222324252627private void Btn_Click(object sender, RoutedEventArgs e){ string dir = @.\test\"; // 폴더 디렉토리내 파일이 없다면 폴더 삭제 if (!isFiles(dir)) { DirectoryInfo di = new Direc.. 2018. 5. 1. WPF & C# (C Sharp) - 하위 폴더 검색기 ( 하위디렉토리 / 하위노드 / 재귀함수 ) WPF & C# (C Sharp) - 하위 폴더 검색기 ( 하위디렉토리 / 하위노드 / 재귀함수 ) MainWindow.xaml 12345678910111213141516 Colored by Color Scriptercs MainWindow.xaml.cs using System.IO; 123456789101112131415161718192021222324private void Button_Click(object sender, RoutedEventArgs e){ ListView01.Items.Clear(); string dir = @".\test\"; dirSearch(dir);}// 폴더 체크private void dirSearch(string dir){ string[] Directories = Dire.. 2018. 5. 1. 이전 1 ··· 57 58 59 60 61 62 63 ··· 84 다음