Pregunta

Estoy intentando crear un botón de retroceso. Por tanto, estoy de unión a los navigationwindows backstack.

Código:

 <Hyperlink Name="back" NavigateUri="{Binding RelativeSource={RelativeSource AncestorType={x:Type NavigationWindow}}, Path=BackStack}">

Problema:

  1. Error:. Modo se debe especificar para RelativeSource

Actualización:

No es la navegación a la página anterior.

Gita.

¿Fue útil?

Solución

Añadir a la Mode=FindAncestor RelativeSource Encuadernación:)

{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type NavigationWindow}}, Path=BackStack}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top