feat: Add ImageSelector styles and demo.
This commit is contained in:
1 parent
7da3acceb1
commit
cb7e6fbb98
6 files changed
+338
-2
No files matched your search
@@ -64,7 +64,8 @@
|
||||
[ "Badge", "BadgeDemo", "Brush.CheckDot", "", "DataDisplay" ],
|
||||
[ "Shield", "ShieldDemo", "Brush.SplitKeyValuePair", "", "DataDisplay" ],
|
||||
[ "ImageBlock", "ImageBlockDemo", "Brush.ImageStack", "", "DataDisplay" ],
|
||||
[ "AnimationPath", "AnimationPathDemo", "Brush.Path", "", "DataDisplay" ]
|
||||
[ "AnimationPath", "AnimationPathDemo", "Brush.Path", "", "DataDisplay" ],
|
||||
[ "ImageSelector", "ImageSelectorDemo", "Brush.Image", "", "DataEntry" ]
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,32 @@
|
||||
<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.ImageSelectorDemo"
|
||||
Background="{DynamicResource RegionBrush}">
|
||||
<ScrollViewer>
|
||||
<hc:UniformSpacingPanel Margin="32"
|
||||
ChildWrapping="Wrap"
|
||||
VerticalAlignment="Center"
|
||||
Spacing="32"
|
||||
HorizontalAlignment="Center">
|
||||
<hc:ImageSelector Width="100" Height="100" />
|
||||
<hc:ImageSelector Width="100" Height="100"
|
||||
hc:BorderElement.CornerRadius="50" />
|
||||
<hc:ImageSelector Width="100" Height="100"
|
||||
hc:BorderElement.CornerRadius="50"
|
||||
StrokeDashArray="10,5" />
|
||||
<hc:ImageSelector Width="100" Height="100"
|
||||
hc:BorderElement.CornerRadius="50"
|
||||
BorderBrush="{DynamicResource SuccessBrush}" />
|
||||
<hc:ImageSelector Width="100" Height="100"
|
||||
hc:BorderElement.CornerRadius="50"
|
||||
StrokeDashArray="10,5,10"
|
||||
BorderBrush="{DynamicResource DangerBrush}" />
|
||||
<hc:ImageSelector Width="100" Height="100"
|
||||
hc:BorderElement.CornerRadius="10"
|
||||
StrokeThickness="2"
|
||||
BorderThickness="2"
|
||||
BorderBrush="{DynamicResource PrimaryBrush}" />
|
||||
</hc:UniformSpacingPanel>
|
||||
</ScrollViewer>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace HandyControlDemo.UserControl;
|
||||
|
||||
public partial class ImageSelectorDemo : Avalonia.Controls.UserControl
|
||||
{
|
||||
public ImageSelectorDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user