This is more of a bizzare fix, but you need to enable Windows Forms styles in your application to use gloss. Here is how I did it.
- Add a link to your project in
System.Windows.Forms - Go to the project settings page and click
View Application Events - Add a handler to your
Application.Startup using the following code (in VB.NET, C # similar) (also, if you need to include arguments, do it)
Class Application ' Application-level events, such as Startup, Exit, and DispatcherUnhandledException ' can be handled in this file. Private Sub Application_Startup() Handles Me.Startup System.Windows.Forms.Application.EnableVisualStyles() End Sub End Class
It seems strange that you will need to call this in order to get a WPF progress bar, but the code works for me.
source share