private bool ModalOpened <T>() { return(_modalWindows.List().Any(x => x.DataContext.GetType() == typeof(T))); }
public bool IsOpen <T>() where T : IModal { return(_modalWindows.List().Any(x => x.DataContext.GetType() == typeof(T))); }