I have this frame Window Home.xaml
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<StackPanel x:Name="LinksStackPanel" Orientation="Horizontal" >
</StackPanel>
<Frame Name="FrameWithinGrid" Source="Views/PricipalPage.xaml" NavigationUIVisibility="Hidden" Margin="0,52,0,0" />
</StackPanel>
private void mainMenu_Click(object sender, RoutedEventArgs e)
{
MenuItem mi = (MenuItem)e.OriginalSource;
node a = mi.DataContext as node;
this.FrameWithinGrid.Navigate(new Uri(a.ruta, UriKind.Relative));
}
I have a menu from which the pages of this post so far everything works
When I have loaded a page I want to push this website is directed to another page, but this switch is connected to a command viewmodel
this is the viewmodel
public class RentarInmueblesViewModel : ViewModelBase
{
public RentarInmueblesViewModel()
{
}
private ICommand _SelectInmueblesCommand;
public ICommand SelectInmueblesCommand
{
get
{
if (_SelectInmueblesCommand == null)
{
_SelectInmueblesCommand = new DelegateCommand(SelectInmuebles);
}
return _SelectInmueblesCommand;
}
}
<pre lang="cs">private void SelectInmuebles()
{
Here I would go the code addresses to another page
}
}
}
concerned with
NavigationService.Navigate(new Uri("/Views/ClientesAgenciasPage.xaml", UriKind.Relative));
but without any resltado
I asked a lot and did not find any way to do
this