microsoft / fluentui-blazor

Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
https://www.fluentui-blazor.net
MIT License
3.3k stars 305 forks source link

feat: add DialogParameter in FluentDialog #2024

Closed ProgramGeek02 closed 3 weeks ago

ProgramGeek02 commented 3 weeks ago

🙋 Feature Request

When you call a dialog using c# you can pass dialogParameter, but when you create a dialog directly in the page you cannot pass the parameters. Something like this

...

@code { DialogParameters parameters; }

vnbaaij commented 3 weeks ago

That is by design.

We need the DialogService to coordinate and transport the values from the parameter when creating the dialog component.

We are not going to change this. Being able to use the Dialog itself as a component is just offered as a convenience method. When doing more complex things you need to use the service.