Set return value for dialog close button

Hi!

I want to ask that is there a possibility to set the return value for the the DialogService when we click on the close button other then the default null.

I think inside the DialogService the dialog close button implictly calls the public void Close(dynamic result = null); function but I want to set the parameter somehow. Can you expose it?

Indeed the default return value is null. You can probably add a check for it in your code and provide some default value as needed.

But I want to pass some dynamic object to it instead of null, it isn't possible?

Yes, it isn't possible to specify a return value for the close button.