add ElementGroup demo

This commit is contained in:
chenjie02_cd committed 2021-07-03 16:26:43 +08:00
1 parent 7c0a551d69
commit 77f4d0199e
17 files changed
+104 -2

No files matched your search

@@ -113,6 +113,9 @@
<Resource Include="..\..\Shared\HandyControlDemo_Shared\UserControl\Controls\DrawerDemoCtl.xaml">
<Link>UserControl\Controls\DrawerDemoCtl.xaml</Link>
</Resource>
<Resource Include="..\..\Shared\HandyControlDemo_Shared\UserControl\Controls\ElementGroupDemoCtl.xaml">
<Link>UserControl\Controls\ElementGroupDemoCtl.xaml</Link>
</Resource>
<Resource Include="..\..\Shared\HandyControlDemo_Shared\UserControl\Controls\FlexPanelDemoCtl.xaml">
<Link>UserControl\Controls\FlexPanelDemoCtl.xaml</Link>
</Resource>
@@ -504,6 +507,10 @@
<Link>UserControl\Controls\DrawerDemoCtl.xaml.cs</Link>
<DependentUpon>DrawerDemoCtl.xaml</DependentUpon>
</Resource>
<Resource Include="..\..\Shared\HandyControlDemo_Shared\UserControl\Controls\ElementGroupDemoCtl.xaml.cs">
<Link>UserControl\Controls\ElementGroupDemoCtl.xaml.cs</Link>
<DependentUpon>ElementGroupDemoCtl.xaml</DependentUpon>
</Resource>
<Resource Include="..\..\Shared\HandyControlDemo_Shared\UserControl\Controls\FlexPanelDemoCtl.xaml.cs">
<Link>UserControl\Controls\FlexPanelDemoCtl.xaml.cs</Link>
<DependentUpon>FlexPanelDemoCtl.xaml</DependentUpon>
@@ -34,7 +34,7 @@
[ "Label", "LabelDemoCtl", "Label_16x", "", "" ],
[ "Frame", "FrameDemoCtl", "frame_16xLG", "", "" ],
[ "Window", "NativeWindowDemoCtl", "WindowsForm_16x", "", "" ],
[ "Geometry", "GeometryDemoCtl", "Path_16x", "1", "" ]
[ "Geometry", "GeometryDemoCtl", "Path_16x", "", "" ]
]
},
{
@@ -43,7 +43,7 @@
"group": true,
"demoItemList": [
[ "FloatingBlock", "FloatingBlockDemoCtl", "thumbs_up", "", "Interacting" ],
[ "PropertyGrid", "PropertyGridDemoCtl", "PropertyGridEditorPart_16x", "1", "DataEntry" ],
[ "PropertyGrid", "PropertyGridDemoCtl", "PropertyGridEditorPart_16x", "", "DataEntry" ],
[ "ImageSelector", "ImageSelectorDemoCtl", "Image_16x", "1", "DataEntry" ],
[ "ImageBlock", "ImageBlockDemoCtl", "ImageStack_16x", "", "DataDisplay" ],
[ "Magnifier", "MagnifierDemoCtl", "Search_16x", "", "Interacting" ],
@@ -74,6 +74,7 @@
[ "OutlineText", "OutlineTextDemoCtl", "TextBlock_16x", "", "DataDisplay" ],
[ "RunningBlock", "RunningBlockDemoCtl", "Dynamic_16x", "", "DataDisplay" ],
[ "Card", "CardDemoCtl", "VSO_Card_16x", "", "DataDisplay" ],
[ "ElementGroup", "ElementGroupDemoCtl", "ButtonGroup_16x", "1", "Layout" ],
[ "Divider", "DividerDemoCtl", "DottedSplitter_16x", "", "Layout" ],
[ "CirclePanel", "CirclePanelDemoCtl", "ColorWheel_16x", "", "Layout" ],
[ "Grid", "GridDemoCtl", "GridPane_16x", "", "Layout" ],
@@ -59,6 +59,9 @@
<Compile Include="$(MSBuildThisFileDirectory)UserControl\Basic\TextDialogWithTimer.xaml.cs">
<DependentUpon>TextDialogWithTimer.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)UserControl\Controls\ElementGroupDemoCtl.xaml.cs">
<DependentUpon>ElementGroupDemoCtl.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)UserControl\Controls\FlexPanelDemoCtl.xaml.cs">
<DependentUpon>FlexPanelDemoCtl.xaml</DependentUpon>
</Compile>
@@ -539,6 +542,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)UserControl\Controls\ElementGroupDemoCtl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)UserControl\Controls\FlexPanelDemoCtl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@@ -718,6 +718,17 @@ namespace HandyControlDemo.Properties.Langs
}
}
/// <summary>
/// Looks up a localized string similar to 元素组.
/// </summary>
public static string ElementGroup
{
get
{
return ResourceManager.GetString("ElementGroup", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 邮箱.
/// </summary>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>Empty</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>ElementGroup</value>
</data>
</root>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>Empty</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>ElementGroup</value>
</data>
</root>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>Empty</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>ElementGroup</value>
</data>
</root>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>Empty</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>ElementGroup</value>
</data>
</root>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>Empty</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>ElementGroup</value>
</data>
</root>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>Empty</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>ElementGroup</value>
</data>
</root>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>Empty</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>ElementGroup</value>
</data>
</root>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>空状态</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>元素组</value>
</data>
</root>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>Empty</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>ElementGroup</value>
</data>
</root>
@@ -795,4 +795,7 @@
<data name="Empty" xml:space="preserve">
<value>Empty</value>
</data>
<data name="ElementGroup" xml:space="preserve">
<value>ElementGroup</value>
</data>
</root>
@@ -96,6 +96,7 @@ namespace HandyControlDemo.Properties.Langs
OnPropertyChanged(nameof(DragHere));
OnPropertyChanged(nameof(Drawer));
OnPropertyChanged(nameof(Effects));
OnPropertyChanged(nameof(ElementGroup));
OnPropertyChanged(nameof(Email));
OnPropertyChanged(nameof(Empty));
OnPropertyChanged(nameof(Error));
@@ -560,6 +561,11 @@ namespace HandyControlDemo.Properties.Langs
/// </summary>
public string Effects => Lang.Effects;
/// <summary>
/// 查找类似 元素组 的本地化字符串。
/// </summary>
public string ElementGroup => Lang.ElementGroup;
/// <summary>
/// 查找类似 邮箱 的本地化字符串。
/// </summary>
@@ -1699,6 +1705,11 @@ namespace HandyControlDemo.Properties.Langs
/// </summary>
public static string Effects = nameof(Effects);
/// <summary>
/// 查找类似 元素组 的本地化字符串。
/// </summary>
public static string ElementGroup = nameof(ElementGroup);
/// <summary>
/// 查找类似 邮箱 的本地化字符串。
/// </summary>
@@ -0,0 +1,25 @@
<UserControl x:Class="HandyControlDemo.UserControl.ElementGroupDemoCtl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Background="{DynamicResource RegionBrush}"
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">
<hc:TransitioningContentControl>
<StackPanel Margin="32" VerticalAlignment="Center">
<hc:ElementGroup Orientation="Horizontal">
<Border Style="{StaticResource BorderRegion}" Padding="6,0">
<Path Data="{StaticResource ClockGeometry}" Width="16" Height="16" Stretch="Uniform" Fill="{DynamicResource BorderBrush}"/>
</Border>
<TextBox MinWidth="200"/>
<Button Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}"/>
<ToggleButton Content="{ex:Lang Key={x:Static langs:LangKeys.ToggleButton}}"/>
</hc:ElementGroup>
<hc:ElementGroup Margin="0,16,0,0">
<TextBox/>
<Button HorizontalAlignment="Stretch" Width="auto" Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}"/>
<ToggleButton HorizontalAlignment="Stretch" Width="auto" Content="{ex:Lang Key={x:Static langs:LangKeys.ToggleButton}}"/>
</hc:ElementGroup>
</StackPanel>
</hc:TransitioningContentControl>
</UserControl>
@@ -0,0 +1,10 @@
namespace HandyControlDemo.UserControl
{
public partial class ElementGroupDemoCtl
{
public ElementGroupDemoCtl()
{
InitializeComponent();
}
}
}