Exemple #1
0
        protected override async Task InitializeViewsAsync()
        {
            if (!(typeof(T).GetCustomAttribute(typeof(RegionAttribute)) is RegionAttribute attr))
            {
                return;
            }

            await AddPresenterAsync(Presenter);

            Shell.AddViewToRegion(GetPresenter <T>().View, attr.Region);

            await base.InitializeViewsAsync();
        }