I want to implement a statusbar where i will be able to display messages for a specified period of time after which they will fadeout.
Can this be done with any ready made control in wpf? I can’t find such a functionality in StatusBar which as far as i understand is a container of other items.
Any suggestions?
StatusBaris indeed only a container of other items.I think there isn’t any built-in functionality like this.
But you can use a
Timerto achieve what you want.Make a method that sets the text message as the content of a
StatusBarItem, set a time in theTimerand in theTimer.Elapsedevent you remove the text from theStatusBarItem.StatusBarXAML:Procedural code:
If you want to animate you should look for
DoubleAnimation