开发者

WPF - navigating to a frame in multiple ways causes error

开发者 https://www.devze.com 2022-12-13 21:41 出处:网络
I have a WPF window and a frame within the window that contains most of my content. In some cases, I will navigate directly to a URL with the frame and this will cause my frame.Currentsource to popula

I have a WPF window and a frame within the window that contains most of my content. In some cases, I will navigate directly to a URL with the frame and this will cause my frame.Currentsource to populate properly. However,开发者_如何学编程 in other cases, I will create a page object and then put the object directly in the frame.Navigate method but this will cause my frame.Currentsource to resolve to a NULL.

How can I make sure that my frame will always have a valid frame.Currentsource value?

0

精彩评论

暂无评论...
验证码 换一张
取 消