c# - Frame.Navigate() 与 this.Frame.Navigate()

标签 c# windows-8 windows-runtime windows-store-apps

Windows 8.1 商店应用中的 Frame.Navigate()this.Frame.Navigate() 有什么区别?

这有什么区别

Frame.Navigate(typeof(Login));

有这个吗?

this.Frame.Navigate(typeof(Login));

最佳答案

没有区别。

The this keyword refers to the current instance of the class and is also used as a modifier of the first parameter of an extension method.

https://msdn.microsoft.com/en-us/library/dk1507sz.aspx

关于c# - Frame.Navigate() 与 this.Frame.Navigate(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30049972/

相关文章:

c# - 为什么我的隐式 ContextMenu 样式不会覆盖 TextBox 上下文菜单样式?

c# - 具有多项选择的内联 if-else 语句

c# - 如何在 Windows 8 Metro 应用程序中打开托管的 PDF?

c# - 我是否需要为 Windows Phone 8 和 Windows 8 桌面创建单独的应用程序?

debugging - 我可以通过 USB 在 Windows RT 平板电脑上调试/部署我的应用程序吗?

c# - 函数的返回值存储在哪里

google-chrome - 在 Windows 8 Chrome 中搜索框样式搞砸了?

javascript - 使用共享合约使用图像文件

binding - 如何在 WinRT 中的 ItemContainerStyle 中进行绑定(bind)?

c# - 在 Windows Phone 中打开纯数字键盘?