6 changed files with 46 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||
// Copyright (c) The Perspex Project. All rights reserved.
|
|||
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|||
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Perspex.Controls.Primitives; |
|||
|
|||
namespace Perspex.Controls |
|||
{ |
|||
/// <summary>
|
|||
/// A separator control.
|
|||
/// </summary>
|
|||
public class Separator : TemplatedControl |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
<Styles xmlns="https://github.com/perspex"> |
|||
|
|||
<Style Selector="Separator"> |
|||
<Setter Property="Template"> |
|||
<ControlTemplate> |
|||
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/> |
|||
</ControlTemplate> |
|||
</Setter> |
|||
</Style> |
|||
|
|||
<Style Selector="MenuItem > Separator"> |
|||
<Setter Property="Background" Value="#ffd7d7d7"/> |
|||
<Setter Property="Margin" Value="29,1,0,1"/> |
|||
<Setter Property="Height" Value="1"/> |
|||
</Style> |
|||
|
|||
</Styles> |
|||
Loading…
Reference in new issue