enhance: optimized Divider.
This commit is contained in:
1 parent
8a66f92089
commit
4c09f67e92
2 files changed
+7
-2
No files matched your search
@@ -11,7 +11,9 @@
|
|||||||
<StackPanel Width="300">
|
<StackPanel Width="300">
|
||||||
<hc:Divider/>
|
<hc:Divider/>
|
||||||
<hc:Divider Content="{ex:Lang Key={x:Static langs:LangKeys.Title}}"/>
|
<hc:Divider Content="{ex:Lang Key={x:Static langs:LangKeys.Title}}"/>
|
||||||
<hc:Divider Content="{ex:Lang Key={x:Static langs:LangKeys.Title}}" Padding="10,0"/>
|
<hc:Divider Padding="0">
|
||||||
|
<Button Content="More" hc:IconElement.Geometry="{StaticResource DownGeometry}" hc:IconElement.Height="8"/>
|
||||||
|
</hc:Divider>
|
||||||
<hc:Divider LineStrokeThickness="2" LineStroke="{DynamicResource DarkPrimaryBrush}"/>
|
<hc:Divider LineStrokeThickness="2" LineStroke="{DynamicResource DarkPrimaryBrush}"/>
|
||||||
<hc:Divider LineStrokeDashArray="2,2"/>
|
<hc:Divider LineStrokeDashArray="2,2"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
using System.Windows;
|
using System.ComponentModel;
|
||||||
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Markup;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using HandyControl.Data;
|
using HandyControl.Data;
|
||||||
|
|
||||||
namespace HandyControl.Controls;
|
namespace HandyControl.Controls;
|
||||||
|
|
||||||
|
[ContentProperty(nameof(Content))]
|
||||||
public class Divider : Control
|
public class Divider : Control
|
||||||
{
|
{
|
||||||
public static readonly DependencyProperty ContentProperty = DependencyProperty.Register(
|
public static readonly DependencyProperty ContentProperty = DependencyProperty.Register(
|
||||||
|
|||||||
Reference in new issue
Block a user