Change default Form in WPF Program.
-
Hi Everyone, Firstly, I think this may be my first post here, but I have been following the code project for quite a little while, and have had an account for almost just as long: one of the best resources online! Anyway, one thing that I just can't seem to work out, a rather simple problem, is changing the default form that is opened when a WPF program is launched. I can do it in Windows Forms without a problem, but I can't seem to find where to do it in WPF. All help and input is greatly appreciated! - Josh
-
Hi Everyone, Firstly, I think this may be my first post here, but I have been following the code project for quite a little while, and have had an account for almost just as long: one of the best resources online! Anyway, one thing that I just can't seem to work out, a rather simple problem, is changing the default form that is opened when a WPF program is launched. I can do it in Windows Forms without a problem, but I can't seem to find where to do it in WPF. All help and input is greatly appreciated! - Josh
Look in Program.cs, there you shall find your answer!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
Hi Everyone, Firstly, I think this may be my first post here, but I have been following the code project for quite a little while, and have had an account for almost just as long: one of the best resources online! Anyway, one thing that I just can't seem to work out, a rather simple problem, is changing the default form that is opened when a WPF program is launched. I can do it in Windows Forms without a problem, but I can't seem to find where to do it in WPF. All help and input is greatly appreciated! - Josh
Oops, sorry, missed it was a WPF question. Look in App.xaml, line 4, the StartupUri property!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
Oops, sorry, missed it was a WPF question. Look in App.xaml, line 4, the StartupUri property!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
Thanks heaps for that, it is a great help!