public MainPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; AppCommon.RegisterForShare(); }