控制 WPF 导航历史记录
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论