C#/WPF
-
[WPF] Plug-InC#/WPF 2025. 4. 1. 17:19
#DynamicModule#Modular 공통 모듈, 모듈 인터페이스 통해서 각 모듈 프로젝트에서View, ViewModel 등록하고 Bootstrapper에서 컨테이너에 등록 종속성 주입으로 받음 각 모듈에서 INavigateModule 상속받아서 구현해주고 공통 모듈의 템플릿에서 각 모듈의 NavigateViewCommand 실행 되도록 함. 메인 프로젝트 모듈에서공통 모듈의 템플릿 사용. https://medium.com/c-sharp-programming/introduction-to-a-plug-in-architecture-using-the-example-of-a-wpf-application-7f2e225b647a Introduction to a plug-in archit..
-
[WPF] Xmal svg imageC#/WPF 2025. 3. 25. 14:29
1. DevExpress 이용 https://docs.devexpress.com/WPF/120131/common-concepts/images/svg-images SVG Images | WPF Controls | DevExpress DocumentationThis topic describes how to display SVG images and change their palettes. You can use the SVG Icon Builder or any third-party vector graphics editor to create SVG images. Display SVG Images in XAML DevExpress components include properties of the ImageSourc..
-
[WPF] WPF UI Call from MFC (Feat. CLR)C#/WPF 2025. 3. 20. 14:25
Visual Studio 2022에 기본적으로 CLR 설치 안되어 있음. Installer 들어가서 C++/CLI Support 인스톨 해야 함. WPF Library (.Net Framework) WPF로 만든 공용 UI (.net Framework 4.xx~로 만들어야 함) CLR Class Library (.Net Framework) Managed 와 UnManaged Language를 연결해주는 다리 역할의 라이브러리 UI 라이브러리 WpfNFLibrary를 참조 Managed class (WPF용) DialogInterfaceWrapper DialogInterfaceWrapper.h DialogInterfaceWrapper.cpp UnManaged class (MFC용) NativeI..
-
[WPF] Project PublishC#/WPF 2025. 3. 19. 13:23
# Deployment mode Framework-dependent (의존성있는 패키지들만 포함 ex. DevExpress, other.dll) Self-contained ( 필요한 .net 관련 파일 전부 폴더에 떨굼): Self-contained deployment mode in .NET creates an executable that includes all the required .NET files to run an application. The app is isolated from other .NET apps and doesn't require the user to install .NET #Produce single file .exe 실행파일 프로젝트만 가능 ex) .dll 등 라이브러리 프..
-
[WPF] 외부파일 Drag & DropC#/WPF 2025. 3. 11. 10:58
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"xmlns:behavior="clr-namespace:SampleProject.ViewModel.Behavior" class FileDropBehavior : Behavior{ public static readonly DependencyProperty DroppedFilesProperty = DependencyProperty.Register("DroppedFiles", typeof(string[]), typeof(FileDropBehavior), new PropertyMetadata(default(string[]))); public string[] DroppedFiles ..
-
[WPF] 파일 확장자 프로그램 연결C#/WPF 2025. 3. 11. 08:34
https://www.sysnet.pe.kr/2/0/10966 .NET Framework: 584. C# - 파일 확장자에 연결된 프로그램을 등록하는 방법 (1) - 기본글쓴 사람 정성태 (techsharer at outlook.com) 홈페이지 첨부 파일 [file_associate_sample_1.zip] 부모글 보이기/감추기 (시리즈 글이 3개 있습니다.) .NET Framework: 584. C# - 파일 확장자에 연결된 프로그램을www.sysnet.pe.kr https://www.moonding.co.kr/windows-file-extensions-connections-between-applications/ Windows 파일 확장자, 애플리케이션 간 연결Windows OS 는 기본 ..
-
[WPF] 프로그램 실행시 인수 전달C#/WPF 2025. 3. 11. 08:24
using System;class Sample{ public static void Main() { Console.WriteLine(); // Invoke this sample with an arbitrary set of command line arguments. string[] arguments = Environment.GetCommandLineArgs(); Console.WriteLine("GetCommandLineArgs: {0}", string.Join(", ", arguments)); }} https://learn.microsoft.com/ko-kr/dotnet/api/system.environment.getcommandli..