A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
532 B

using System;
using System.Collections.Generic;
using System.Text;
using Avalonia;
using Avalonia.Controls.Primitives;
using Avalonia.Media;
namespace ControlCatalog
{
public class CustomControl : TemplatedControl
{
public static readonly StyledProperty<IBrush> StrokeProperty =
AvaloniaProperty.Register<CustomControl, IBrush>(nameof(Stroke));
public IBrush Stroke
{
get => GetValue(StrokeProperty);
set => SetValue(StrokeProperty, value);
}
}
}