Info Bar - Auto close after X seconds

Fundamentals for Avalonia Forum

Posted 1 days ago by Dirk Zellerfeld
Avatar

Info bar is great. I would like to see an opt-in option to auto close it after some time if the user doesn't interact with it.

Comments (2)

Posted 3 hours ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Glad to hear you are enjoying the info bar control!  I'm not sure, however, that we could effectively implement the auto-close option since it's difficult to quantify exactly what "user interaction" would be.

For instance, if the content of an info bar included hyperlinked text, buttons, or other interactive controls, we would not know if the user interacted with those controls.

With that in mind, it's probably best to leave this up to the individual developer since you would be able to determine the proper level of interaction.  After showing the info bar, you could start a task that, after a certain amount of time, could check some variable you manage to see if the user interacted with the info bar in a meaningful way and, if not, set the IsOpen property to false.


Actipro Software Support

Posted 3 hours ago by Dirk Zellerfeld
Avatar

Sorry, let me rephrase that. Please add an opt-in setting that closes the info bar if it has not been closed by the user. Often, we want to temporarily inform the user that something has been completed, but we don't want to flood their screen over time (some of our applications can run in the background 24/7. We don't know when the user is online or offline). It's not necessary for these notifications to remain on the screen forever until the user comes online and closes them all one by one.

But it should be an optional setting, as I can see reasons for the bar to remain on the screen, as in your demo app with the microphone mute info.

Add Comment

Please log in to a validated account to post comments.