public PlacesPage() { InitializeComponent(); // Set the data context of the LongListSelector control to the sample data DataContext = App.ViewModel; this.onLoadedEventHandler = new RoutedEventHandler(OnLoaded); this.Loaded += onLoadedEventHandler; settings = Settings.GetInstance(); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }
public static Settings GetInstance() { if (_instance == null) _instance=new Settings(); return _instance; }