add UniformSpacingPanel Demo
This commit is contained in:
1 parent
f069b5236d
commit
968441ad83
21 files changed
+13418
-9
No files matched your search
+39
@@ -0,0 +1,39 @@
|
||||
<UserControl x:Class="HandyControlDemo.UserControl.UniformSpacingPanelDemoCtl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
xmlns:langs="clr-namespace:HandyControlDemo.Properties.Langs"
|
||||
xmlns:ex="clr-namespace:HandyControlDemo.Tools.Extension"
|
||||
Background="{DynamicResource RegionBrush}">
|
||||
<hc:TransitioningContentControl>
|
||||
<hc:SimpleStackPanel Margin="32">
|
||||
<hc:UniformSpacingPanel Spacing="10">
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
</hc:UniformSpacingPanel>
|
||||
<hc:Divider LineStrokeDashArray="2,2"/>
|
||||
<hc:UniformSpacingPanel Spacing="10" Orientation="Vertical">
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
</hc:UniformSpacingPanel>
|
||||
<hc:Divider LineStrokeDashArray="2,2"/>
|
||||
<hc:UniformSpacingPanel Spacing="10" Width="300" ChildWrapping="Wrap" HorizontalAlignment="Left">
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
</hc:UniformSpacingPanel>
|
||||
<hc:Divider LineStrokeDashArray="2,2"/>
|
||||
<hc:UniformSpacingPanel Spacing="10" Orientation="Vertical" Height="70" ChildWrapping="Wrap" HorizontalAlignment="Left">
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.ContentDemoStr}}"/>
|
||||
</hc:UniformSpacingPanel>
|
||||
</hc:SimpleStackPanel>
|
||||
</hc:TransitioningContentControl>
|
||||
</UserControl>
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
namespace HandyControlDemo.UserControl
|
||||
{
|
||||
public partial class UniformSpacingPanelDemoCtl
|
||||
{
|
||||
public UniformSpacingPanelDemoCtl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user