コード例 #1
0
    public static bool GoBack()
    {
        if ((history.Count == 0) || !CanNavigate())
        {
            return(false);
        }
        NavigateBackHandler handler = history.Peek();

        if (!handler())
        {
            return(false);
        }
        if ((history.Count > 0) && (handler == history.Peek()))
        {
            history.Pop();
        }
        if (NAVIGATION_DEBUG)
        {
            DumpStack();
        }
        return(true);
    }
コード例 #2
0
 public static void PopUnique(NavigateBackHandler handler)
 {
コード例 #3
0
 public static bool BackStackContainsHandler(NavigateBackHandler handler)
 {
     return(history.Contains(handler));
 }