분류 전체보기
-
[Prism] Ioc, Container, DIC#/Prism 2023. 2. 23. 14:53
Container.RegisterType(); // Looks like Dictionary Dictionary(); Interface을 키값으로 Class 를 컨테이너에 등록 Container.Resolve(); // 해당 인터페이스로 Register되어있는 Class 인스턴스를 가져옴. https://mizzlena.tistory.com/63 [C#] Prism 용어 정리 C# WPF C# WPF(Windows Presentation Foundation)는 마이크로소프트에서 개발한 GUI 응용 프로그램 개발을 위한 플랫폼입니다. WPF는 XAML(Extensible Application Markup Language)을 사용하여 사용자 인터페이스를 설계하 mizzlena.tistory.com https:..
-
[WPF] JsonConvert, 직렬화C#/WPF 2023. 2. 22. 16:03
using Newtonsoft.Json; https://learn.microsoft.com/ko-kr/dotnet/standard/serialization/system-text-json/how-to?pivots=dotnet-8-0 C에서 JSON을 직렬화 및 역직렬화하는 방법# - .NET System.Text.Json 네임스페이스를 사용하여 .NET에서 JSON으로 직렬화 및 역직렬화하는 방법을 알아봅니다. 샘플 코드가 포함되어 있습니다. learn.microsoft.com https://devstarsj.github.io/development/2016/06/11/CSharp.NewtonJSON/ Newtonsoft.Json 사용법 C# 에서 JSON document를 다루기 위해 가장 많이 사용되는 ..
-
[Prism] DirectoryModuleCatalogC#/Prism 2023. 2. 21. 16:49
prism 동적모듈 데브익스프레스 적용 파일. 1.mirror file 2.참고 1.mirror file App.cs protected override void RegisterTypes(IContainerRegistry containerRegistry) { mDir.Items.AddRange(AddModuleAssm.AddModuleInfo(db.AssmList)); } DirectoryModuleCatalog.cs using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.IO; using System.Linq; using System...
-
-
-
[Prism] RegisterC#/Prism 2023. 2. 7. 10:59
Register says that the given service should be used when the given interface is injected, and that a new instance will be created for each single injection. RegisterSingleton differs in that the same instance is used for all injections. RegisterInstance is the same as RegisterSingleton, but you have to provide an instance. https://stackoverflow.com/questions/61023264/register-vs-registerinstance..
-
[WPF] {Binding}C#/WPF 2023. 2. 3. 10:04
값 경로 지정 바인딩 소스가 개체이면 Binding.Path 속성을 사용하여 바인딩에 사용할 값을 지정합니다. XML 데이터에 바인딩할 경우에는 Binding.XPath 속성을 사용하여 값을 지정합니다. 경우에 따라 데이터가 XML이더라도 Path 속성을 사용하는 것이 좋을 수 있습니다. 예를 들어 XPath 쿼리의 결과로 반환된 XmlNode의 Name 속성에 액세스하려면 XPath 속성 외에 Path 속성을 사용해야 합니다. 자세한 내용은 Path 및 XPath 속성을 참조하세요. 사용할 값의 Path가 네 가지 필수 구성 요소 중 하나임을 강조했지만, 전체 개체에 바인딩하려는 시나리오에서는 사용할 값이 바인딩 소스 개체와 같습니다. 이 경우에는 Path를 지정하지 않는 것이 좋습니다. 다음 예제를 ..