C#/WPF
-
-
[WPF] gRPCC#/WPF 2023. 7. 12. 17:03
gRPC Server 프로젝트 생성 gRPC Client 프로젝트 생성Client Nuget추가Google.ProtobufGrpc.Net.ClientGrpc.Tools 프로젝트에 등록. Server로 동작할 지 Client로 동작할지 지정. (둘다 는 Both)#File not found 에러시 ProtoRoot="" 지정 해보기. Server, Client가 동일하게 공유하는 gRPC 인터페이스 (Protobuf = Protocol Buffer) option csharp_namespace = "ArithmeticService";ArithmeticService 네임스페이스 Client별 Server별 다르게 설정 추천.한 프로젝트내에 같은 네임스페이스로 Proto 선언 되어있으면 UnitTest나 다..
-
[WPF] Text 마우스 선택시 파란영역C#/WPF 2023. 7. 7. 15:50
TextBlock 대신 https://stackoverflow.com/questions/136435/any-way-to-make-a-wpf-textblock-selectable Any way to make a WPF textblock selectable? How to allow TextBlock's text to be selectable? I tried to get it to work by displaying the text using a read-only TextBox styled to look like a textblock but this will not work in my case because a stackoverflow.com
-
[WPF] Border Brush Theme changedC#/WPF 2023. 7. 7. 10:08
https://stackoverflow.com/questions/14733818/system-theme-color-border-for-wpf-usercontrol System theme color border for WPF UserControl I have a custom UserControl and I want it to have the same border style that a normal Window. I try to bind the border´s color to the system active border color:
-
[WPF] ListBox Content ResizeC#/WPF 2023. 7. 6. 17:38
#문제 ListBox 의 사이즈를 변경시 ex) border나 dockpanel 등 listbox를 감싸고 있는 창 ListBox Item (content)의 사이즈가 변경이 안되는 문제 ListBox의 HorizontalContentAlignment="Stretch" 속성을 사용시 content의 width 사이즈를 ListBox의 Width 사이즈만큼 늘릴 수 있지만 ListBox의 전체 창 Resize시 ex) 창을 크게 늘리면 Content크기가 커지는데 작게하면 Content크기가 커진 그대로 남아 있어서 Content가 다 보이지 않고 잘려보이는 현상 #해결 HorizontalContentAlignment="Stretch" 지우고 ListBox의 ItemTemplate의 Grid에 Width ..
-