RepositoryC#
PR

PrismLibrary/Prism-Samples-Wpf

Samples that demonstrate how to use various Prism features with WPF

1.8ksao
782fork
0issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: prism

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: samples

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: prism

#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

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC#
PrismLibrary/Prism

Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..

6.9k
Oct 21, 2026
RepositoryC#
k1tbyte/Wand-Enhancer

Advanced UX and interoperability extension for Wand (WeMod) app

33.0k
Oct 18, 2026
RepositoryC#
NickeManarin/ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.

27.8k
Oct 14, 2026
RepositoryC#
BeyondDimension/SteamTools

🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。

27.2k
Aug 31, 2026
RepositoryC#
MaterialDesignInXAML/MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.

16.3k
Oct 20, 2026
RepositoryC#
srwi/EverythingToolbar

Everything integration for the Windows taskbar.

15.0k
Oct 23, 2026
RepositoryC#
JosefNemec/Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.

14.4k
Oct 19, 2026
RepositoryC#
lucasg/Dependencies

A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.

11.9k
May 15, 2024
RepositoryC#
File-New-Project/EarTrumpet

EarTrumpet - Volume Control for Windows

11.5k
Oct 18, 2026