XAML код выглядит очень просто:
- <Grid>
- <TextBlock>
- <Hyperlink NavigateUri="http://www.ya.ru" RequestNavigate="Hyperlink_RequestNavigate">Перейти</Hyperlink>
- </TextBlock>
- </Grid>
* This source code was highlighted with Source Code Highlighter.
Добавить using System.Diagnostics;
- private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
- {
- Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
- e.Handled = true;
- }
* This source code was highlighted with Source Code Highlighter.