Hi i want to get applcation path in one seperate class used in my XAML,WPF applcation. In Animals.cs,
string aPath2 = Application.StartupPath;
MessageBox.Show(path);
It shws error error CS0117: 'System.Windows.Application' does not contain a definition for 'StartupPath'
I have to give data to treeview,im taking that all details from file in applcation path.
Use AppDomain.CurrentDomain.BaseDirectory
StartupPath was only for Windows forms
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With