/// <inheritdoc/>
        public bool TryResolveVisual(PageViewModel viewModel, [MaybeNullWhen(false)] out T visual)
        {
            Type?t = AnnotationsVisualResolver <T> .GetViewType(viewModel);

            if (t is not null)
            {
                visual = t.New <T>();
                return(true);
            }
            else
            {
                visual = default;
                return(false);
            }
        }
 /// <inheritdoc/>
 public T ResolveVisual(PageViewModel viewModel)
 {
     return((AnnotationsVisualResolver <T> .GetViewType(viewModel) ?? throw Errors.VisualHostNotFound(viewModel)).New <T>());
 }