-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
249 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BorderDemoCtl.axaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<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.BorderDemoCtl" | ||
Background="{DynamicResource RegionBrush}"> | ||
<ScrollViewer> | ||
<hc:UniformSpacingPanel Margin="32" | ||
Orientation="Vertical" | ||
Spacing="32" | ||
MaxWidth="664"> | ||
<hc:UniformSpacingPanel Spacing="32" | ||
ItemWidth="200" | ||
ItemHeight="200" | ||
ChildWrapping="Wrap" | ||
HorizontalAlignment="Center"> | ||
<Border Theme="{StaticResource BorderRegion}"> | ||
<Border Background="{DynamicResource PrimaryBrush}"> | ||
<TextBlock Text="Content" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Center" | ||
Foreground="White" /> | ||
</Border> | ||
</Border> | ||
<Border Theme="{StaticResource BorderRegion}" | ||
Effect="{StaticResource EffectShadow1}"> | ||
<Border Background="{DynamicResource InfoBrush}"> | ||
<TextBlock Text="Content" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Center" | ||
Foreground="White" /> | ||
</Border> | ||
</Border> | ||
<Border Theme="{StaticResource BorderRegion}" | ||
Effect="{StaticResource EffectShadow2}"> | ||
<Border Background="{DynamicResource WarningBrush}"> | ||
<TextBlock Text="Content" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Center" | ||
Foreground="White" /> | ||
</Border> | ||
</Border> | ||
<Border Theme="{StaticResource BorderRegion}" | ||
Effect="{StaticResource EffectShadow3}"> | ||
<Border Background="{DynamicResource DangerBrush}"> | ||
<TextBlock Text="Content" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Center" | ||
Foreground="White" /> | ||
</Border> | ||
</Border> | ||
<Border Theme="{StaticResource BorderRegion}" | ||
Effect="{StaticResource EffectShadow4}"> | ||
<Border Background="{DynamicResource AccentBrush}"> | ||
<TextBlock Text="Content" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Center" | ||
Foreground="White" /> | ||
</Border> | ||
</Border> | ||
<Border Theme="{StaticResource BorderRegion}" | ||
Effect="{StaticResource EffectShadow5}"> | ||
<Border Background="{DynamicResource BorderBrush}"> | ||
<TextBlock Text="Content" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Center" /> | ||
</Border> | ||
</Border> | ||
</hc:UniformSpacingPanel> | ||
<hc:UniformSpacingPanel Orientation="Vertical" | ||
Spacing="10"> | ||
<Border Theme="{StaticResource BorderTipPrimary}"> | ||
<TextBlock Text="TitleTitleTitleTitleTitleTitleTitleTitleTitleTitle" /> | ||
</Border> | ||
<Border Theme="{StaticResource BorderTipDanger}"> | ||
<TextBlock Text="TitleTitleTitleTitleTitleTitleTitleTitleTitleTitle" /> | ||
</Border> | ||
<Border Theme="{StaticResource BorderTipWarning}"> | ||
<TextBlock Text="TitleTitleTitleTitleTitleTitleTitleTitleTitleTitle" /> | ||
</Border> | ||
<Border Theme="{StaticResource BorderTipInfo}"> | ||
<TextBlock Text="TitleTitleTitleTitleTitleTitleTitleTitleTitleTitle" /> | ||
</Border> | ||
<Border Theme="{StaticResource BorderTipSuccess}"> | ||
<TextBlock Text="TitleTitleTitleTitleTitleTitleTitleTitleTitleTitle" /> | ||
</Border> | ||
</hc:UniformSpacingPanel> | ||
</hc:UniformSpacingPanel> | ||
</ScrollViewer> | ||
</UserControl> |
9 changes: 9 additions & 0 deletions
9
src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BorderDemoCtl.axaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace HandyControlDemo.UserControl; | ||
|
||
public partial class BorderDemoCtl : Avalonia.Controls.UserControl | ||
{ | ||
public BorderDemoCtl() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.