Skip to content

Commit e8d52d7

Browse files
authored
Allow a dialog to have its content sent to null (#2311)
1 parent 364e427 commit e8d52d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MaterialDesignThemes.Wpf/DialogSession.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ internal DialogSession(DialogHost owner)
3535
/// Update the current content in the dialog.
3636
/// </summary>
3737
/// <param name="content"></param>
38-
public void UpdateContent(object content)
38+
public void UpdateContent(object? content)
3939
{
4040
_owner.AssertTargetableContent();
41-
_owner.DialogContent = content ?? throw new ArgumentNullException(nameof(content));
41+
_owner.DialogContent = content;
4242
_owner.Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() =>
4343
{
4444
_owner.FocusPopup();

0 commit comments

Comments
 (0)