Permalink
Browse files

allow null dialog identifer!

  • Loading branch information...
1 parent e976149 commit 5397cb6bff52ea96c4a867db2d0e85a05f7199cf @ButchersBoy committed Jan 9, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 MaterialDesignThemes.Wpf/DialogHost.cs
@@ -176,7 +176,7 @@ public static Task<object> Show(object content, object dialogIdentifier, DialogC
throw new InvalidOperationException("No loaded DialogHost instances.");
LoadedInstances.First().Dispatcher.VerifyAccess();
- var targets = LoadedInstances.Where(dh => Equals(dh.Identifier, dialogIdentifier)).ToList();
+ var targets = LoadedInstances.Where(dh => dialogIdentifier == null || Equals(dh.Identifier, dialogIdentifier)).ToList();
if (targets.Count == 0)
throw new InvalidOperationException("No loaded DialogHost have an Identifier property matching dialogIndetifier argument.");
if (targets.Count > 1)

0 comments on commit 5397cb6

Please sign in to comment.