2024-02-28 15:21:48 +08:00
|
|
|
<UserControl
|
|
|
|
d:DesignHeight="450"
|
|
|
|
d:DesignWidth="800"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
x:Class="Semi.Avalonia.Demo.Pages.HyperlinkButtonDemo"
|
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<StackPanel HorizontalAlignment="Left" Spacing="20">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
2024-03-01 20:53:55 +08:00
|
|
|
<HyperlinkButton Height="20" NavigateUri="http://www.irihi.tech/">
|
2024-02-28 15:21:48 +08:00
|
|
|
<TextBlock
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Text="iRihi Homepage"
|
|
|
|
TextDecorations="Underline"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</HyperlinkButton>
|
|
|
|
</StackPanel>
|
2024-02-28 15:51:30 +08:00
|
|
|
<StackPanel Orientation="Horizontal">
|
2024-03-01 20:53:55 +08:00
|
|
|
<HyperlinkButton Height="20" IsEnabled="False">
|
2024-02-28 15:51:30 +08:00
|
|
|
<TextBlock
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Text="Not Enabled"
|
|
|
|
TextDecorations="Underline"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</HyperlinkButton>
|
|
|
|
</StackPanel>
|
2024-02-28 15:21:48 +08:00
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<HyperlinkButton
|
|
|
|
BorderThickness="1"
|
|
|
|
Classes="WithIcon"
|
2024-03-01 20:53:55 +08:00
|
|
|
Height="20"
|
2024-02-28 15:21:48 +08:00
|
|
|
NavigateUri="http://www.irihi.tech/">
|
|
|
|
<TextBlock
|
|
|
|
HorizontalAlignment="Center"
|
2024-03-01 20:53:55 +08:00
|
|
|
Text="Link with Icon"
|
2024-02-28 15:21:48 +08:00
|
|
|
TextDecorations="Underline"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</HyperlinkButton>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|