PrismLibrary/Prism-Samples-Wpf
Samples that demonstrate how to use various Prism features with WPF
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tháng
#1 Repository Của Tháng
🎯 Học Prism WPF qua 30 mẫu thực tế, từ A đến Z
Mỗi mẫu là một khái niệm Prism. Chạy thử, hiểu luôn. Không cần đọc tài liệu dài.
Bộ mẫu Prism-Samples-Wpf tập trung vào việc minh họa cách sử dụng Prism trong WPF. Phù hợp người mới bắt đầu. Được sắp xếp theo thứ tự tích lũy: mẫu sau mở rộng khái niệm mẫu trước.
✨ Điểm nổi bật
- Bootstrapper & Shell: Khởi tạo ứng dụng và cửa sổ chính bằng Prism.
- Region: Chia UI thành vùng linh hoạt.
- Custom Region Adapter: Tùy biến Region cho StackPanel.
- View Discovery: Tự động đăng ký View vào Region.
- View Injection: Thêm/xóa View thủ công.
- View Activation/Deactivation: Bật/tắt View tùy ý.
- Modules: Tải module qua App.config, code, thư mục, hoặc IModuleManager.
- ViewModelLocator: Gán ViewModel tự động cho View.
- DelegateCommand: Gọi lệnh từ View đến ViewModel.
- CompositeCommands: Gộp nhiều lệnh thành một.
- IActiveAware Commands: Chỉ thực thi lệnh trên View đang hoạt động.
- Event Aggregator: Truyền tin giữa các module không phụ thuộc trực tiếp.
- RegionContext: Truyền dữ liệu xuống Region lồng nhau.
- Region Navigation: Điều hướng giữa các View trong Region.
- Navigation Callback: Nhận thông báo sau khi điều hướng xong.
- Navigation Participation: Xử lý logic khi View/ViewModel tham gia điều hướng.
- Navigate to existing Views: Kiểm soát số lượng instance của View.
- Passing Parameters: Truyền tham số giữa View/ViewModel.
- Confirm/cancel Navigation: Xác nhận hoặc hủy điều hướng.
- Controlling View lifetime: Tự động dọn View khỏi bộ nhớ.
- Navigation Journal: Quản lý lịch sử điều hướng.
- Dialog Service: Tạo và quản lý hộp thoại.
- Styling Dialog: Tùy biến giao diện hộp thoại.
- Using Custom Window: Dùng cửa sổ tùy chỉnh cho hộp thoại.
- InvokeCommandAction: Gọi lệnh bằng sự kiện bất kỳ.
💡 Vì sao đáng chú ý
Prism là framework giúp xây dựng ứng dụng WPF modular, dễ bảo trì. Nhưng học từ tài liệu dài dẫng ví dụ thì mệt. Bộ mẫu này chia nhỏ thành 30 ví dụ nhỏ, mỗi ví dụ một tính năng. Chạy thử từng mẫu, hiểu ngay cách Prism hoạt động trong thực tế.
Dành cho team dùng Prism nhưng chưa thành thạo. Hoặc người tò mò muốn học kiến trúc ứng dụng WPF chuẩn enterprise.
#Prism #WPF #MVVM #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..
🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
Google's Material Design in XAML & WPF, for C# & VB.Net.
Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.