C#/WPF
-
[WPF] UI 즉시 업데이트C#/WPF 2022. 9. 21. 10:31
//화면 UI 즉시 변경 Dispatcher.CurrentDispatcher.Invoke((ThreadStart)(() => { }), DispatcherPriority.ApplicationIdle); https://www.sysnet.pe.kr/2/0/747 .NET Framework: 149. WPF - UI 업데이트를 바로 반영하고 싶다면? .NET Framework: 149. WPF - UI 업데이트를 바로 반영하고 싶다면? [링크 복사], [링크+제목 복사] 조회: 32769 글쓴 사람 정성태 (techsharer at outlook.com) 홈페이지 첨부 파일 부모글 보이기/감추기 WPF - UI 업데 www.sysnet.pe.kr Dispatcher.CurrentDispatcher.Invok..
-
[WPF] ListBox ControlTemplate ScrollbarC#/WPF 2022. 9. 6. 18:00
https://stackoverflow.com/questions/16683477/change-scrollviewer-template-in-listbox Change scrollviewer template in listbox I'm a newbie with WPF. I want to change the template of scroll viewer in listbox. I found an Apple style scroll bar in this blog But i dont know how to apply that scroll viewer template to listbox... stackoverflow.com
-
[WPF] Grid, StackPanel, DockPanelC#/WPF 2022. 9. 6. 11:22
Grid Grid가 ColumnDefinition만 지정되어 있다면 밑에는 뚫려있는 상자로 비유가능. 컨트롤의 Width을 ActualWidth로 지정하면 각 Column Width에 맞게 지정되지만 Height을 ActualHeight로 사용하면 Height이 무한대로 지정됨 RowDefinition을 지정해줘야 바닥이 막힌 상자가 만들어져서 ListBox 등 컨트롤의 크기를 지정할때 한계치가 있는 크기지정이 가능 (ActualHeight) StackPanel Control의 Height 크기에 따라 Height가 증가. DockPanel 창의 최대치에 맞게 꽉 채움.
-
[WPF]ListBox 내에서 Button Command BindingC#/WPF 2022. 9. 5. 16:09
Command="{Binding DataContext.SelDownload, RelativeSource={RelativeSource AncestorType=UserControl, AncestorLevel=1}}" ListBox 내 DataTemplate의 Button의 인덱스 지정 및 가져오기 LitBox에 추가될 아이템의 Index저장 (SerialIndex) CommandParameter로 ItemsSource의 바인딩 모델의 SerialIndex 바인딩
-
[WPF]MVVMC#/WPF 2022. 7. 11. 11:52
https://blog.arong.info/wpf/2022/01/21/WPF-WPF-MVVM-%ED%8C%A8%ED%84%B4%EC%97%90-%EB%8C%80%ED%95%B4.html (WPF) WPF MVVM 패턴에 대해 - Arooong Blog 복잡한 프로그램일 수록 기본적인 설계단계에 있어 항상 다음과 같은 사항을 고려하지 않을 수 없습니다. 공통적 부분의 재사용성, 의존성 등 그리고 이런 고민은 어떻게 하면 효율적으로 사용 blog.arong.info DataContext // 코드상에서 new FirstViewModel과 비슷 //뷰 DataContext 뷰모델 연결 위 코드 DataContext Code IntelliSense 가능하게 함. ( xaml상에서 FirstViewModel의 프..
-
[WPF] Data BindingC#/WPF 2022. 7. 6. 11:43
UI와 Data를 동기화시켜주는 기술 앱이 UI를 표현하고 Data와 상호작용하는 것을 단순화 컨트롤(Control)의 Property와 내가 지정한 객체의 Property를 연결 (Target ↔ Source) Bingding을 위해 BindingContext 속성이 반드시 소스객체를 참조 XAML에서 Binding 마크업을 사용해 설정 Binding 마크업은 Path, Mode 속성이 있음 Path : 바인딩하고자 하는 원본객체의 속성명 Mode : 속성 값의 변화가 영향을 줄 방향 OneWay 소스에서 타깃으로만 변경사항이 반영 (Default) TwoWay 양방향으로 적용. 소스와 타깃객체가 항상 동기화 OnwWayToSource 타깃에서 소스로만 변경사항이 반영. 주로, 읽기전용의 바인딩 속성에..