BACK BUTTON – COMMAND

BACK BUTTON – COMMAND

  • 13 Juni 2019 um 9:43 pm #32858

    How can made a button to back to previous screen. The option „STOP“ o ‚Commands – Open Scren‘, send to startup screen.

  • 14 Juni 2019 um 12:27 pm #32859
    Kristof70
    Teilnehmer

    Hi Edison
    You have to use the „Stop“ screen opening mode in the screen command…

    Stop: when the “ScreenName” parameter is left empty this command opens the “Tile Page” window or the startup screen, according to the project startup modality type. If the name of the screen is inserted in the “ScreenName” parameter and screen was opened as “Synchro”, the modal screen will just close. On the other hand, it the screen was opened as „Normal“, a Back command will be used to load the previous screen

    BR
    Kristof

  • 14 Juni 2019 um 1:04 pm #32860

    Thanks Kristof!
    I´m using the back button on a embbeded screen on the botton of all screen.
    I can´t use a specific name of screen to close. And if i use just the command „STOP“ the application goes to startup screen.

    Att.

    Edison

  • 17 Juni 2019 um 6:10 pm #32876

    I tried several alternatives without success!

  • 25 Juni 2019 um 11:46 am #33027
    ThomasIslera
    Teilnehmer

    Hi Edison,
    If you are using the Embedded Tab Screen object You can change dynamically the screens showed via variable (tag property) or script.
    So you can create a string variable and put the „value“ (screen name) with a normal command.

    If you want use a script Progea gave me an example , under a button:

    ‚#Language „WWB.NET“

    Option Explicit

    ‚*** Enable ScreenManager.dll Reference ***

    Public Sub Control_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Control.Click
    CambioTabScreen
    End Sub

    Public Sub Control_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles Control.MouseUp
    CambioTabScreen
    End Sub

    Public Sub Control_TouchUp(ByVal sender As Object, ByVal e As System.Windows.Input.TouchEventArgs) Handles Control.TouchUp
    CambioTabScreen
    End Sub

    Private Function CambioTabScreen As Boolean

    Try
    Dim Screen As String= „Screen\EmbeddedScreen1.xaml“
    Dim objEmbeddedTab As ScreenManager.SpecialObjects.EmbeddedTabScreen
    Dim objElement As System.Windows.FrameworkElement
    Dim objScreenList As New ScreenManager.SpecialObjects.ScreenList

    objElement = Document.MapScreenEntities(„EmbeddedTabScreen1“).Element
    objEmbeddedTab = TryCast(objElement, ScreenManager.SpecialObjects.EmbeddedTabScreen)

    objScreenList.Add(Screen)
    objEmbeddedTab.Screens = objScreenList

    Catch
    Finally
    End Try
    End Function

    ****

    BR
    Thomas

    • Diese Antwort wurde geändert vor 4 Monate, 2 Wochen von ThomasIslera.

Du musst angemeldet sein, um auf dieses Thema antworten zu können.