private void OnItemClicked(object obj) { var item = obj.CastAs <NotificationItem>(); if (item == null) { return; } try { var e = new NotificationEventArgs(obj.CastAs <INotificationInfo>()); ItemClick?.Invoke(this, e); if (e.Handled) { return; } NavigationExecuter.Execute(e.NotificationInfo.NavigationParameter, DefaultNavigationCallback); } finally { item.RaiseCloseEvent(); } }
private void ExecuteNavigation(INavigationParameter parameter) => NavigationExecuter.Execute(parameter, DefaultNavigationCallback);