Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
 private void ExecuteNavigation(INavigationParameter parameter)
 => NavigationExecuter.Execute(parameter, DefaultNavigationCallback);