Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification: does it support notifications outside main window? #7

Closed
BrainCrumbz opened this issue Jul 4, 2016 · 8 comments
Closed
Milestone

Comments

@BrainCrumbz
Copy link
Contributor

Hello

me and my team are looking for a toaster notification library in WPF and came through your library. Thanks for sharing it.

One question though: does it support showing notification in main screen/desktop, so outside of main application window? Potentially also when application is running but main window is minimized, ot application runs from the "system tray"?

Something along the lines of this other library we found, where you can set position to be PrimaryScreenXxxYyy or ApplicationXxxYyy.

Thanks

@rafallopatka
Copy link
Owner

Hi currently it's not possible, maybe in the future, but i need to find some free time to do that, or someone else do that and share via pull request ;)

@BrainCrumbz
Copy link
Contributor Author

There are some (minor) PRs already. You might want to have a look at those. If you start accepting one, we can rebase the others consequently, although there should not be conflicts. Tnx

@giangkieuduc
Copy link

` public NotificationPopupWindow(FrameworkElement attachedElemnt)
{
InitializeComponent();

        this.Activate(); // insert this line and rebuild project; Copy new ToastNotification.dll and Add references to your project
        SetProperties(attachedElemnt);

        Loaded += OnLoaded;
        Unloaded += OnUnloaded;

}`

@rafallopatka rafallopatka added this to the Version 2 milestone Dec 11, 2016
@rafallopatka
Copy link
Owner

will be done in version 2

@rafallopatka
Copy link
Owner

Hi, version 2 is now available and mentioned feature also. You can use different position providers to move notifications to different locations on a screen. In your case use PrimaryScreenPositionProvider, more about that you can find in the docs and samples. If this is not enough you can create your own PositionProvider by implementing a IPositionProvider interface.

@BrainCrumbz
Copy link
Contributor Author

Thanks for keeping us posted! Will try it in a future update of our application. Cheers!

@BrainCrumbz
Copy link
Contributor Author

BTW maybe there's a typo in readme examples, where it says:

// PrimaryScreenPositionProvider
Notifier notifier = new Notifier(cfg =>
{
    cfg.LifetimeSupervisor = new TimeAndCountBasedLifetimeSupervisor(
        notificationLifetime: TimeSpan.FromSeconds(3),
        maximumNotificationCount: MaximumNotificationCount.FromCount(5));
    /* * */
});

Comment probably should say TimeAndCountBasedLifetimeSupervisor

@rafallopatka
Copy link
Owner

You're right, now its fixed.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants