public MainPageViewModel(IAllPageModel page, INavigationService navigationService) { _page = page; NavigationToNotificationCommand = new DelegateCommand(() => navigationService.NavigateAsync("NotificationPage")); NavigationToOverlayCommand = new DelegateCommand(() => navigationService.NavigateAsync("OverlayPage")); NavigationToUsageCommand = new DelegateCommand(() => navigationService.NavigateAsync("UsageStatsManagerPage")); }
public NotificationPageViewModel(IAllPageModel page, INotificationOnAndOff NotificationOnAndOff) { //_page = page; //OnCommand = new DelegateCommand(() => _page.NotificationOn()); //OffCommand = new DelegateCommand(() => _page.NotificationOff()); _NotificationOnAndOff = NotificationOnAndOff; OnCommand = new DelegateCommand(() => _NotificationOnAndOff.NotificationOn()); OffCommand = new DelegateCommand(() => _NotificationOnAndOff.NotificationOff()); }
public UsageStatsManagerPageViewModel(IAllPageModel page) { _page = page; TestLabel = "aaaaaaaaaaaaaa"; GetPackageCommand = new DelegateCommand(() => TestLabel = _page.UsageStatsManager.GetAppName()); GetTypeCommand = new DelegateCommand(() => TestLabel = _page.UsageStatsManager.GetType()); }
public HidePageViewModel(IAllPageModel page) { _page = page; }
public OverlayPageViewModel(IAllPageModel page) { _page = page; OverlayOnCommand = new DelegateCommand(() => _page.OverlayViewCreate()); OverlayOffCommand = new DelegateCommand(() => _page.OverlayViewDestroy()); }