با عرض سلام و خسته نباشید خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب آموزش رفتن به Page دیگر با NavigateUri و Hyperlink با wpf و c#.net را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
خروجی این کد:
کد رفتن به Page دیگر با NavigateUri و Hyperlink با wpf و c#.net :
<Page x:Class="NavigationApplication.LinkToAssemblyPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="LinkToAssemblyPage">
<StackPanel Margin="3">
<TextBlock Margin="3" TextWrapping="Wrap">
This is a simple page.
Click <Hyperlink NavigateUri="/PageLibrary;component/SharedPage.xaml">here</Hyperlink>.
</TextBlock>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="LinkToAssemblyPage">
<StackPanel Margin="3">
<TextBlock Margin="3" TextWrapping="Wrap">
This is a simple page.
Click <Hyperlink NavigateUri="/PageLibrary;component/SharedPage.xaml">here</Hyperlink>.
</TextBlock>