mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-26 10:52:04 -04:00
Make fields readonly Remove unnecessary casts Format document Remove unnecessary usings Sort usings Use file-level namespaces Order modifiers
23 lines
456 B
C#
23 lines
456 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
|
|
namespace LibationAvalonia.Controls;
|
|
|
|
public partial class GroupBox : ContentControl
|
|
{
|
|
|
|
public static readonly StyledProperty<string> LabelProperty =
|
|
AvaloniaProperty.Register<GroupBox, string>(nameof(Label));
|
|
public GroupBox()
|
|
{
|
|
InitializeComponent();
|
|
Label = "This is a groupbox label";
|
|
}
|
|
|
|
public string Label
|
|
{
|
|
get { return GetValue(LabelProperty); }
|
|
set { SetValue(LabelProperty, value); }
|
|
}
|
|
}
|