C#/Prism
-
[Prism] ViewModelLocator.AutoWireViewModelC#/Prism 2024. 1. 9. 16:29
https://www.c-sharpcorner.com/article/datacontext-autowire-in-wpf/ DataContext And Autowire In WPF There are 3 ways to bind the View with ViewModel. One way is to bind DataContext Property within a XAML, Second is to assign DataContext within Code-Behind and last using ViewModelLocator. www.c-sharpcorner.com
-
[Prism] Command ObservesPropertyC#/Prism 2023. 11. 29. 13:17
프로퍼티 bool 값에 따른 Command 실행 EX) private bool _isChecked; public bool IsChecked { get { return _isChecked; } set { SetProperty(ref _isChecked, value); } } private DelegateCommand _navigateCommand; public DelegateCommand NavigateCommand => //_navigateCommand ?? (_navigateCommand = new DelegateCommand(ExecuteNavigateCommand).ObservesCanExecute(() => IsChecked)); _navigateCommand ?? (_navigateCommand..
-
[Prism] ActiveViewsC#/Prism 2023. 11. 1. 10:02
https://stackoverflow.com/questions/6358843/how-to-get-the-current-active-view-in-a-region-using-prism How to get the current active view in a region using PRISM? I know that i can get all the registered views in a region with : var vs = mRegionManager.Regions[RegionNames.MainRegionStatic].Views.ToList(); and i can see there is the following code : stackoverflow.com
-
[Prism] How to get a name of the active view in PRISMC#/Prism 2023. 10. 30. 17:08
https://stackoverflow.com/questions/18699316/how-to-get-a-name-of-the-active-view-in-prism How to get a name of the active view in PRISM I am trying to navigate to the same view (same as the active one), but with new parameters. The problem is that I struggle to find a clean way to get a currently active view's name from RegionManager stackoverflow.com
-
[Prism] Apply DevExpress Theme to Prism DialogC#/Prism 2023. 5. 18. 17:02
1.dx:ThemedWindow 깡통 윈도우 View 생성 https://dlsenfl.tistory.com/entry/WPF-TaskBar [WPF] TaskBar 기본 ShowInTaskbar = "True" 로 작동. 아래 스샷처럼 새로운 어플리케이션이 동작하는것처럼 보임. ShowInTaskbar = "False" 추가하면 요렇게 보임. dlsenfl.tistory.com 2.Prism IDialogWindow 추가 3.Dialog 로 띄울 View 생성 4. 띄울 Dialog ViewModel에 Prism IDialogAware 추가 5.Module에서 Container에 Register 5-1. 또 다른 Dialog View 등록 예시 6. 띄우려는 DialogView , 띄울때 보낼 파라미터..
-
[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:..
-
[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..