@@ -108,7 +108,7 @@ public static async Task<object> ShowDialog(this DependencyObject childDependenc
108
108
/// <returns></returns>
109
109
public static async Task < object > ShowDialog ( this DependencyObject childDependencyObject , object content , DialogOpenedEventHandler openedEventHandler )
110
110
{
111
- return await GetOwningDialogHost ( childDependencyObject ) . ShowInternal ( content , null , null ) ;
111
+ return await GetOwningDialogHost ( childDependencyObject ) . ShowInternal ( content , openedEventHandler , null ) ;
112
112
}
113
113
114
114
/// <summary>
@@ -123,7 +123,7 @@ public static async Task<object> ShowDialog(this DependencyObject childDependenc
123
123
/// <returns></returns>
124
124
public static async Task < object > ShowDialog ( this DependencyObject childDependencyObject , object content , DialogClosingEventHandler closingEventHandler )
125
125
{
126
- return await GetOwningDialogHost ( childDependencyObject ) . ShowInternal ( content , null , null ) ;
126
+ return await GetOwningDialogHost ( childDependencyObject ) . ShowInternal ( content , null , closingEventHandler ) ;
127
127
}
128
128
129
129
/// <summary>
@@ -139,7 +139,7 @@ public static async Task<object> ShowDialog(this DependencyObject childDependenc
139
139
/// <returns></returns>
140
140
public static async Task < object > ShowDialog ( this DependencyObject childDependencyObject , object content , DialogOpenedEventHandler openedEventHandler , DialogClosingEventHandler closingEventHandler )
141
141
{
142
- return await GetOwningDialogHost ( childDependencyObject ) . ShowInternal ( content , null , null ) ;
142
+ return await GetOwningDialogHost ( childDependencyObject ) . ShowInternal ( content , openedEventHandler , closingEventHandler ) ;
143
143
}
144
144
145
145
private static DialogHost GetFirstDialogHost ( Window window )
0 commit comments