Skip to content

Commit 33a3e4e

Browse files
committed
make sure ags get passed thru on new dialog extensions
1 parent 9a1e709 commit 33a3e4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MaterialDesignThemes.Wpf/DialogHostEx.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static async Task<object> ShowDialog(this DependencyObject childDependenc
108108
/// <returns></returns>
109109
public static async Task<object> ShowDialog(this DependencyObject childDependencyObject, object content, DialogOpenedEventHandler openedEventHandler)
110110
{
111-
return await GetOwningDialogHost(childDependencyObject).ShowInternal(content, null, null);
111+
return await GetOwningDialogHost(childDependencyObject).ShowInternal(content, openedEventHandler, null);
112112
}
113113

114114
/// <summary>
@@ -123,7 +123,7 @@ public static async Task<object> ShowDialog(this DependencyObject childDependenc
123123
/// <returns></returns>
124124
public static async Task<object> ShowDialog(this DependencyObject childDependencyObject, object content, DialogClosingEventHandler closingEventHandler)
125125
{
126-
return await GetOwningDialogHost(childDependencyObject).ShowInternal(content, null, null);
126+
return await GetOwningDialogHost(childDependencyObject).ShowInternal(content, null, closingEventHandler);
127127
}
128128

129129
/// <summary>
@@ -139,7 +139,7 @@ public static async Task<object> ShowDialog(this DependencyObject childDependenc
139139
/// <returns></returns>
140140
public static async Task<object> ShowDialog(this DependencyObject childDependencyObject, object content, DialogOpenedEventHandler openedEventHandler, DialogClosingEventHandler closingEventHandler)
141141
{
142-
return await GetOwningDialogHost(childDependencyObject).ShowInternal(content, null, null);
142+
return await GetOwningDialogHost(childDependencyObject).ShowInternal(content, openedEventHandler, closingEventHandler);
143143
}
144144

145145
private static DialogHost GetFirstDialogHost(Window window)

0 commit comments

Comments
 (0)