Wednesday, July 20, 2011

WPF Loading Panel

Having a nice loading panel with a progress bar showing that some work is in progress is a very cool feature to any application.

With this control you can show a loading panel as you are going and fetching data from the database, it will update your window with up to date progress messages.

<ctr:LoadingPanel x:Name="loadingPanel"
IsLoading="{Binding PanelLoading}"
Message="{Binding PanelMainMessage}"
SubMessage="{Binding PanelSubMessage}"
ClosePanelCommand="{Binding PanelCloseCommand}" />

Loading Panel

Please let me know if this helps you.

16 comments:

Aymeric Nguyen said...

Clear and useful example. Thank you !

feral said...

Thanks that made it easy for me to implement an IsLoading property in my control :)

sevdalone said...

works like a charm thanks

Ilya Kogan said...

A great example, thank you very much!

Rita said...

thank you a lot, it helped me to make a similar thing.

Anonymous said...

Helpful however I cannot get over how complex for a spinner for Petes sake....not convinced about WPF

Anonymous said...

Thanks for posting this!!! I needed a spinner like you made and was able to drop yours in in like 5 minutes.

Anonymous said...

So MVVM friendly. Thank you!

Murat said...

Very helpful component,thanks a lot !

Anonymous said...

Very nice and still easy to use after 7 years, good job! :D

Anonymous said...

Thanks for the great article, how can I show the progress and update the message on one button click, I have a code to download some data. I need to use this how can I do that.

Anonymous said...

Thank you for this! Very simple to use!

Zatarra said...

Thank you very much! The only thing I cannot get to work is to make the spinner have a transparent background somehow. It does not react to anything in my case.

Anonymous said...

very simple, Thank you. :)

Anonymous said...

Wow, when I see simple usercontrols that is sharp and simple, I just can't use it without giving feedback. Really easy to use, nice and smooth, thumbs up buddy!

Jan Daliba said...

Hello,
thank you for nice example but I have a trouble with calling my methods after showing off a panel. I can show/hide it using buttons but how can I call my method? It always stops updating... Thanks for your help.