I am trying to have a StatusBar in my application which has a button in one of the panels.
I am doing
StatusBarPanel panel = new StatusBarPanel();
Which I know is wrong because I get
"Unable to cast object of type 'System.Windows.Controls.Button' to type 'System.ComponentModel.IComponent'"
as button is not IComponent.
What is the right way to do this?
P.S. I don't have a XAML file but doing everything through code.
Thank You in advance :)
View Complete Post