WPF FrameworkPropertyMetaData Journal——这有什么意义?

标签 wpf metadata dependency-properties journal

基本上,正如标题所问:

Journal 属性有什么意义? MSDN 并没有真正解释它的实际用途。

最佳答案

blog post 很好地解释了这一点,或上官方MSDN page .

总结一下:

Windows Presentation Foundation (WPF) supports browser-style navigation that can be used in two types of applications: standalone applications and XAML browser applications (XBAPs). To package content for navigation, WPF provides the Page class. You can navigate from one Page to another declaratively, by using a Hyperlink, or programmatically, by using the NavigationService. WPF uses the journal to remember pages that have been navigated from and to navigate back to them.
...
If you need to remember small pieces of state across Page navigations, you can use dependency properties (see DependencyProperty) that are configured with the FrameworkPropertyMetadata.Journal metadata flag.

关于WPF FrameworkPropertyMetaData Journal——这有什么意义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5824131/

相关文章:

wpf - 为什么 ColorAnimation 无法使用 TargetProperty ="Fill"工作?

swift - metadata?.storageReference?.downloadURL() 返回 nil

c# - 将 Action 注入(inject) UserControl

c# - WPF MVVM 和具有依赖属性的嵌套 View

WPF自定义控件-如何对自定义控件进行单元测试?

c# - 在 WPF 中使用 HashSets 和 ObservableCollection

选项卡式页面之间的 wpf 验证刷新

c# - InitializeComponent() 有什么作用,它在 WPF 中是如何工作的?

ffmpeg - FFMPEG 中的 `-map data-re` 选项有什么作用?

python - 如何在不创建新文件的情况下使用 ffmpeg/avconv 更改元数据?