Skip to content

Add ToUri() to the PathBuilder #1719

@JerryNixon

Description

@JerryNixon

Currently has ToString() which requires:

var path = PathBuilder.Create(BackStackBehaviors.Clear, nameof(MyView)).ToString();
await NavigationService.NavigateAsync(new Uri(path, UriKind.Relative));

This works and should not be changed.

The desired ADDITIONAL syntax would be:

var path = PathBuilder.Create(BackStackBehaviors.Clear, nameof(MyView)).ToUri();
await NavigationService.NavigateAsync(path);

It will be difficult to remember the UriKind.Relative part anyway.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions