feat: add avalonia HyperlinkButton style.
This commit is contained in:
1 parent
0c10c8234b
commit
78e729fdc5
24 files changed
+337
-50
No files matched your search
@@ -1,26 +1,24 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
x:Class="HandyControlDemo.UserControl.CheckBoxDemo">
|
||||
<StackPanel Margin="32"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
<hc:UniformSpacingPanel Margin="32"
|
||||
Spacing="16"
|
||||
Orientation="Vertical"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
<CheckBox Content="CheckBox"
|
||||
IsChecked="True" />
|
||||
<CheckBox Margin="0,16,0,0"
|
||||
Content="CheckBox"
|
||||
<CheckBox Content="CheckBox"
|
||||
IsChecked="True"
|
||||
IsEnabled="False" />
|
||||
<CheckBox Margin="0,16,0,0"
|
||||
Content="CheckBox" />
|
||||
<CheckBox Margin="0,16,0,0"
|
||||
Content="CheckBox"
|
||||
<CheckBox Content="CheckBox" />
|
||||
<CheckBox Content="CheckBox"
|
||||
IsEnabled="False" />
|
||||
<CheckBox Margin="0,16,0,0"
|
||||
Content="CheckBox"
|
||||
<CheckBox Content="CheckBox"
|
||||
IsChecked="{x:Null}" />
|
||||
<CheckBox Margin="0,16,0,0"
|
||||
Content="CheckBox"
|
||||
<CheckBox Content="CheckBox"
|
||||
IsChecked="{x:Null}"
|
||||
IsEnabled="False" />
|
||||
</StackPanel>
|
||||
</hc:UniformSpacingPanel>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,69 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
x:Class="HandyControlDemo.UserControl.HyperlinkButtonDemo">
|
||||
<hc:UniformSpacingPanel Margin="32"
|
||||
Spacing="32"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
ItemVerticalAlignment="Top">
|
||||
<Border Theme="{StaticResource BorderRegion}">
|
||||
<hc:UniformSpacingPanel Spacing="16"
|
||||
Orientation="Vertical">
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl"
|
||||
IsEnabled="False" />
|
||||
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost primary"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost success"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost info"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost warning"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost danger"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
</hc:UniformSpacingPanel>
|
||||
</Border>
|
||||
<Border Theme="{StaticResource BorderRegion}">
|
||||
<hc:UniformSpacingPanel Spacing="16"+
|
||||
|
||||
Orientation="Vertical">
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="small"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="small"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl"
|
||||
IsEnabled="False" />
|
||||
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost primary small"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost success small"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost info small"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost warning small"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
<HyperlinkButton Content="HandyControl"
|
||||
Classes="ghost danger small"
|
||||
NavigateUri="https://github.com/HandyOrg/HandyControl" />
|
||||
</hc:UniformSpacingPanel>
|
||||
</Border>
|
||||
</hc:UniformSpacingPanel>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace HandyControlDemo.UserControl;
|
||||
|
||||
public partial class HyperlinkButtonDemo : Avalonia.Controls.UserControl
|
||||
{
|
||||
public HyperlinkButtonDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user