8,757
社区成员
发帖
与我相关
我的任务
分享
Hb.Content = ApplicationStrings.AboutPageTitle ;
hb.Content = ApplicationStrings.AboutPageTitle ;
hb.NavigateUri = new System.Uri("/About" , System.UriKind.Relative);
hb.TargetName = "ContentFrame";
<navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}"
Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
<navigation:Frame.UriMapper>
<uriMapper:UriMapper>
<uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
<uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
</uriMapper:UriMapper>
</navigation:Frame.UriMapper>
</navigation:Frame>
System.Windows.Data.Binding binding = new System.Windows.Data.Binding()
{
Source = 要被绑定的实体的实例,
Path = new PropertyPath("属性路径"),
Mode = System.Windows.Data.BindingMode.TwoWay,
Converter = xxxx
};
this.Hb.SetBinding(HyperlinkButton.ContentProperty, binding);