PrismLibrary / PrismLibrary/Prism
[Enhancement] Support IInitialize with Dialog ViewModel
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.8k
- Forks
- 1.6k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 1
Description
Summary
In addition of the IDialogAware, provide a Dialog ViewModel initialization, similar of IInitialize and IInitializeAsync of page navigation.
API Changes
Add the equivalent of IInitialize & IInitializeAsync interfaces for the Dialogs.
public interface IDialogInitialize
{
void Initialize(IDialogParameters parameters);
}
public interface IDialogInitializeAsync
{
Task InitializeAsync(IDialogParameters parameters);
}
Intended Use Case
Support the synchronous and asynchronous initialization of a Dialog ViewModel.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing IDialogAware implementation and the IInitialize and IInitializeAsync interfaces used by page navigation. Add equivalent synchronous and asynchronous dialog initialization support using IDialogParameters, then verify that dialog ViewModels can receive those initialization calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100