8 changed files with 46 additions and 12 deletions
@ -0,0 +1,9 @@ |
|||
<Style xmlns="https://github.com/perspex" Selector=":is(Control)"> |
|||
<Setter Property="FocusAdorner"> |
|||
<FocusAdornerTemplate> |
|||
<Rectangle Stroke="Black" |
|||
StrokeThickness="1" |
|||
StrokeDashArray="1,2"/> |
|||
</FocusAdornerTemplate> |
|||
</Setter> |
|||
</Style> |
|||
@ -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 Perspex.Controls; |
|||
using Perspex.Metadata; |
|||
|
|||
namespace Perspex.Markup.Xaml.Templates |
|||
{ |
|||
public class FocusAdornerTemplate : ITemplate<IControl> |
|||
{ |
|||
[Content] |
|||
public TemplateContent Content { get; set; } |
|||
|
|||
public IControl Build() |
|||
{ |
|||
return Content.Load(); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue