-
[WPF] gRPCC#/WPF 2023. 7. 12. 17:03
****** 참고 ****** https://grpc.io/ gRPCA high-performance, open source universal RPC frameworkgrpc.iogRPC 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 = "ArithmeticServi..
-
[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 ..
-
[C#] XML 파일C#/기초 2023. 7. 5. 13:32
XML 대소문자 구분함. 특수문자 사용시 적용법 1. 특수문자를 대신하는 문자를 대신 사용 다양한 특수문자가 많지만, 자주 사용하는 5개의 특수문자만 예로 들어 설명해보겠습니다. 결과값 요소 이름 요소 번호 & & & > > ' ' ' " " " 출처 : http://www.w3schools.com/html/html_entities.asp [출처] string.xml 에 특수문자 삽입하기 ( &, , ', ")|작성자 시험모드 https://error999.tistory.com/5 C# - Xml파일 제어, Xml파싱 Xml파일이나 텍스트가 있을 경우 Xml내부에 있는 값을 가져오기 위해서는 다음과 같은 방법을 쓸 수 있습니다. Xml파일 확인케이스 - Xml 속성값 가져오기 - 하위노드..
-
[C#] Dictionary AppendC#/기초 2023. 7. 5. 11:39
1. 사용 List.ForEach() 방법 아이디어는 두 번째 사전을 List 의 KeyValuePair 그런 다음 각 항목을 다음을 사용하여 첫 번째 사전에 삽입합니다. ForEach() 방법. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 using System; using System.Linq; using System.Collections.Generic; public static class Extensions { public static void Append(this Dictionary first, Dictionary second) { L..
-
[C#] Nuget.exeC#/기초 2023. 6. 26. 15:18
CMD 관리자 권한 실행. nuget.exe 폴더 경로에서 nuget 명령어 실행. 에러 날 경우./nuget.exe ~ 명령어 변경 .nuspec 파일 만들어짐. .nupkg 만듦 위 dll 로 pack 만들면 인스톨해서 쓰는 프로젝트에서 에러남. .csproj 를 .nuspec 만들어서 ./nuget.exe pack 실행. 차단 해제 에러는 브라우저상에서 nuget.exe 받아서 쓰면 나옴. 차단 해제 후 packhttps://www.delftstack.com/ko/howto/powershell/unblock-files-using-powershell/https://learn.microsoft.com/ko-kr/powershell/module/microsoft.powershell.uti..
-
[DX_WPF] PropertyGridControlDevExpress/DX_WPF 2023. 6. 20. 17:36
DevExpress Demo PropertyGrid 참조 PropertyView.xaml ResorceDictionary.xaml DynamicallyAssignDataEditorsTemplateSelector.cs using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Diagnostics; namespac..