I Got This Error: "Unable to cast object of type 'System.Windows.Controls.Expander' to type 'System.Windows.Controls.GroupBox'"
In XAML file Code of Control Herarchy is like this
here i declare 10 Expander
and in each expander there is 1 <Grid> Control
Now my code is working fine....but problem is i want to remove Expander10
so i removed <Expander10> andrelated code from CS file.
codes compiled successfully. but when i Open this screen i got this error on InitializeComponent() and Error shows in XAML page.
"Unable to cast object of type 'System.Windows.Controls.Expander' to type 'System.Windows.Controls.GroupBox'"
Please Help me for this Error.
it's really strenge what's wrong in removing expander from herarchy......
View Complete Post