Giter Club home page Giter Club logo

Comments (8)

rafallopatka avatar rafallopatka commented on May 20, 2024 1

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.

from toastnotifications.

rafallopatka avatar rafallopatka commented on May 20, 2024

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 ;)

from toastnotifications.

BrainCrumbz avatar BrainCrumbz commented on May 20, 2024

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

from toastnotifications.

giangkieuduc avatar giangkieuduc commented on May 20, 2024

` 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;

}`

from toastnotifications.

rafallopatka avatar rafallopatka commented on May 20, 2024

will be done in version 2

from toastnotifications.

BrainCrumbz avatar BrainCrumbz commented on May 20, 2024

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

from toastnotifications.

BrainCrumbz avatar BrainCrumbz commented on May 20, 2024

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

from toastnotifications.

rafallopatka avatar rafallopatka commented on May 20, 2024

You're right, now its fixed.
Thanks!

from toastnotifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.