I am new to WPF
By using this command GetInstance("HSProModel.CountryMaster") i am getting the class CountryMaster , actually i am getting the name of user control & namespace from the database and trying to open the corresponding usercontrols in a tab.
Instead of casting individual types how can i cast it dependends on the type returned by GetInstance("HSProModel.CountryMaster") ? Any help please.
CountryMaster obj = (CountryMaster) GetInstance("HSProModel.CountryMaster") ; // It works
ProvinceMaster obj = (ProvinceMaster) GetInstance("HSProModel.ProvinceMaster") ; // It works
My purpose is to make an instance of the CountryMaster like new CountryMaster()