Example #1
0
        public static ValueTask OnViewCreate(this IMvxWindowsView storeView, string requestText, Func <IMvxBundle?> bundleLoader)
        {
            if (bundleLoader == null)
            {
                throw new NullReferenceException(nameof(bundleLoader));
            }

            return(storeView.OnViewCreate(() => storeView.LoadViewModel(requestText, bundleLoader())));
        }
 public static void OnViewCreate(this IMvxWindowsView storeView, string requestText, Func <IMvxBundle> bundleLoader)
 {
     storeView.OnViewCreate(() => { return(storeView.LoadViewModel(requestText, bundleLoader())); });
 }