WPF - RelativeSource Encuadernación Problema
-
01-10-2019 - |
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:
- Error:. Modo se debe especificar para RelativeSource
Actualización:
No es la navegación a la página anterior.
Gita.
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