控制 WPF 导航历史记录

发布于 2024-07-30 07:20:42 字数 227 浏览 2 评论 0原文

WPF 使用 Journal 元数据标志自动记住依赖属性的控制状态。

除此之外,您可以实现 IProvideCustomContentState 来提供您自己的自定义状态信息。

但是,我找不到仅执行自定义状态并关闭自动依赖属性状态跟踪的方法。 我想这样做是因为我确切地知道应该为我的页面记住什么状态以及应该如何重新设置该状态。

有没有办法告诉 WPF 不要记录我的控件的属性?

WPF Automatically remembers control state for Dependency Properties with the Journal metadata flag.

On top of this you can implement IProvideCustomContentState to provide your own custom state information.

However, I can't find a way to do ONLY custom state and turn off the automatic Dependency Property state tracking. I want to do this because I know exactly what state should be remembered for my Pages and how that state should be re-setup.

Is there a way to tell WPF not to journal the properties of my controls?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文