Sketchflow Navigation

I am new to Blend and Sketchflow. Hope someone can help me.

I am doing a sketchflow project and have created some buttons that go to specific screens (nice and easy).

Now the catch ...

I made a general menu at the top and put a button on it, and I want it to be achieved with it that if someone clicks on this button, instead of going to a specific screen, it simply goes to the previous screen that was viewed in sketchflow.

Does anyone know if this is possible? And if so, how would I do it?

+6
sketchflow
source share
2 answers

Use the back behavior. There are two easy ways to apply this behavior to your button:

  • Right-click on the toolbar, select "Navigate to" → "Back", or
  • Open the asset panel, SketchFlow-> Behaviors-> NavigateBackAction, drag this behavior onto your button.

xaml should look something like this:

<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:pb="clr-namespace:Microsoft.Expression.Prototyping.Behavior;assembly=Microsoft.Expression.Prototyping.Interactivity" x:Class="SilverlightPrototype12Screens.Screen_1" Width="640" Height="480"> <Grid x:Name="LayoutRoot" Background="White"> <Button Height="66" Margin="241,68,275,0" VerticalAlignment="Top" Content="Button"> <i:Interaction.Triggers> <i:EventTrigger EventName="Click"> <pb:NavigateBackAction/> </i:EventTrigger> </i:Interaction.Triggers> </Button> </Grid> 

+7
source share

I was looking for the same question, but want to switch from C # .net.

I found the following solution:

 private void Navigate(object sender, RoutedEventArgs e) { Microsoft.Expression.Prototyping.Services.PlayerContext.Instance.ActiveNavigationViewModel.NavigateToScreen("WpfPrototype2Screens.Screen_2", true); } 

in this forum .

+5
source share

All Articles