Skip to content

Just a custom WPF UserControl that displays a message and an animation, best used as a loading overlay.

Notifications You must be signed in to change notification settings

Kilazur/WPF_LoadingControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

WPF_LoadingControl

Just a custom UserControl that displays a message and an animation, best used as a loading overlay screen.
All the custom properties support binding.
Rectangles order indexing is done by rosettacode.org's Spiral Algorithm.

Exemple usage

<res:LoadingControl VerticalAlignment="Stretch"
					HorizontalAlignment="Stretch"
					Color1="Blue"
					Color2="Orange"
					SquareAnimationDuration="0:0:1"
					Message="Please wait">
	<res:LoadingControl.ColorEasing>
		<SineEase EasingMode="EaseInOut" />
	</res:LoadingControl.ColorEasing>
	<res:LoadingControl.SizeEasing>
		<QuadraticEase EasingMode="EaseIn" />
	</res:LoadingControl.SizeEasing>
</res:LoadingControl>

TODOs

  1. Add a bindable property to manage the maximum size (hard-coded 300 right now)
  2. Replace the SideLength property by Rows and Columns, allowing asymmetry (imply redoing the Spiral algorithm)
  3. More animations? (ex: Outer layer to inner layer)

About

Just a custom WPF UserControl that displays a message and an animation, best used as a loading overlay.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages