I’m doing some work with Microsoft Prism at the moment, and once again I’ve gotten annoyed that RequestNavigate doesn’t have a generic overload.

Naturally I had to write it, again:


public static class RegionManagerExtensions
{
    public void RequestNavigate(this IRegionManager regionManager, string regionName)
    {
        regionManager.RequestNavigate(regionName, new Uri(typeof(TView), UriKind.Relative).Name));
    }
}
</pre></code>

the ```new Uri(typeof(TView)...)``` works because of the view locator conventions I've implemented.