feat: make TargetClasses internal.
This commit is contained in:
@@ -22,14 +22,17 @@ public class ControlClassesInput: TemplatedControl
|
|||||||
get => GetValue(TargetProperty);
|
get => GetValue(TargetProperty);
|
||||||
set => SetValue(TargetProperty, value);
|
set => SetValue(TargetProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly StyledProperty<ObservableCollection<string>?> TargetClassesProperty = AvaloniaProperty.Register<ControlClassesInput, ObservableCollection<string>?>(
|
|
||||||
nameof(TargetClasses));
|
private ObservableCollection<string> _targetClasses;
|
||||||
|
|
||||||
public ObservableCollection<string>? TargetClasses
|
internal static readonly DirectProperty<ControlClassesInput, ObservableCollection<string>> TargetClassesProperty = AvaloniaProperty.RegisterDirect<ControlClassesInput, ObservableCollection<string>>(
|
||||||
|
nameof(TargetClasses), o => o.TargetClasses, (o, v) => o.TargetClasses = v);
|
||||||
|
|
||||||
|
internal ObservableCollection<string> TargetClasses
|
||||||
{
|
{
|
||||||
get => GetValue(TargetClassesProperty);
|
get => _targetClasses;
|
||||||
set => SetValue(TargetClassesProperty, value);
|
set => SetAndRaise(TargetClassesProperty, ref _targetClasses, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly AttachedProperty<ControlClassesInput?> SourceProperty =
|
public static readonly AttachedProperty<ControlClassesInput?> SourceProperty =
|
||||||
|
|||||||
Reference in New Issue
Block a user