Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 RemoveBackEntry() 方法从导航堆栈中删除两个页面。问题是我现在想实现更多会改变堆栈的功能。
我想知道是否有一种方法可以根据 PageName 删除页面,或者即使有一种方法可以检查导航堆栈中是否存在页面。
您可以检查 backstack 的 ElementAt(i).Source 是否等于页面名称。如果确实如此,您可以将其删除。