PrismLibrary / PrismLibrary/Prism

[Enhancement] Support IInitialize with Dialog ViewModel

Open
#3,223 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Commercial Plus :rocket: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.