"mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive." Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive." answered properly. Developers are finding an appropriate answer about mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive. related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive.. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive..
mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive.
I solved the problem by using the Startup event in the App, instead of overriding OnStartup.
<Application x:Class="TestWPF.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="clr-namespace:TestWPF.ViewModels"
Startup="App_Startup">
<Application.Resources>
<vm:ViewModelLocator x:Key="ViewModelLocator" />
</Application.Resources>
</Application>
Code
public partial class App : Application
{
void App_Startup(object sender, StartupEventArgs e)
{
var view = new ShellView();
Current.MainWindow = view;
Current.MainWindow.Show();
}
}
Source: stackoverflow.com
All those coders who are working on the Whatever based application and are stuck on mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive. can get a collection of related answers to their query. Programmers need to enter their query on mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive. related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive. for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive. while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive.". Visit this developer's friendly online web community, CodeProZone, and get your queries like mvvmlight System.Exception: Cannot find resource named 'Locator'. Resource names are case sensitive. resolved professionally and stay updated to the latest Whatever updates.