Example #1
0
        protected Type? GetCurrentActivityViewModelType()
        {
            Type? currentActivityType = CurrentActivity?.GetType();

            var activityViewModelType = ViewModelTypeFinder.FindTypeOrNull(currentActivityType);
            return activityViewModelType;
        }
Example #2
0
        protected Type?GetCurrentActivityViewModelType()
        {
            Type?currentActivityType = null;

            if (CurrentActivity.IsActivityAlive())
            {
                currentActivityType = CurrentActivity !.GetType();
            }

            var activityViewModelType = ViewModelTypeFinder?.FindTypeOrNull(currentActivityType);

            return(activityViewModelType);
        }
Example #3
0
        protected Type?GetCurrentActivityViewModelType()
        {
            Type?currentActivityType = null;

            if (CurrentActivity.IsActivityAlive())
            {
                currentActivityType = CurrentActivity !.GetType();
            }

            if (currentActivityType == null)
            {
                return(null);
            }

            return(ViewModelTypeFinder?.FindTypeOrNull(currentActivityType));
        }
Example #4
0
        protected Type GetAssociatedViewModelType(Type fromFragmentType)
        {
            Type viewModelType = ViewModelTypeFinder.FindTypeOrNull(fromFragmentType);

            return(viewModelType ?? fromFragmentType.GetBasePresentationAttributes().First().ViewModelType);
        }