Silverlight学习笔记[2] - Frame.JournalOwnership 属性

获取或设置  Frame  是负责管理自己的导航历史记录,还是将导航历史记录的管理工作交给父导航器 ( NavigationWindow 、 Frame ) 负责。
命名空间:   System.Windows.Controls 
程序集:   PresentationFramework(在 PresentationFramework.dll 中)
用于 XAML 的 XMLNS:http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
 
属性值
类型: System.Windows.Navigation.JournalOwnership 
一个  JournalOwnership  值,该值指定  Frame  是否管理自己的日记。   默认值为  Automatic 。  
 
默认情况下,仅当无法找到包含自己的日记的父导航宿主 ( NavigationWindow 、 Frame ) 时, Frame  才会使用自己的导航历史记录(例如,如果承载  Frame  的内容由 Window  承载)。   若要强制  Frame  管理自己的导航历史记录,请将  JournalOwnership  设置为  OwnsJournal 。
 
下面的示例演示一个配置为使用自己的导航历史记录的  Frame 。
XAML页面
< Page xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " >

  <!-- Frame that uses its own journal -->
  < Frame JournalOwnership = " OwnsJournal " Source = " Page2.xaml " />

</ Page > 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

xiangcns

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值