|
|
@@ -31,43 +31,43 @@ namespace Avalonia.Input
|
|
|
/// Defines the <see cref="IsEnabledCore"/> property.
|
|
|
/// </summary>
|
|
|
public static readonly StyledProperty<bool> IsEnabledCoreProperty =
|
|
|
- AvaloniaProperty.Register<InputElement, bool>("IsEnabledCore", true);
|
|
|
+ AvaloniaProperty.Register<InputElement, bool>(nameof(IsEnabledCore), true);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets or sets associated mouse cursor.
|
|
|
/// </summary>
|
|
|
public static readonly StyledProperty<Cursor> CursorProperty =
|
|
|
- AvaloniaProperty.Register<InputElement, Cursor>("Cursor", null, true);
|
|
|
+ AvaloniaProperty.Register<InputElement, Cursor>(nameof(Cursor), null, true);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Defines the <see cref="IsFocused"/> property.
|
|
|
/// </summary>
|
|
|
public static readonly DirectProperty<InputElement, bool> IsFocusedProperty =
|
|
|
- AvaloniaProperty.RegisterDirect<InputElement, bool>("IsFocused", o => o.IsFocused);
|
|
|
+ AvaloniaProperty.RegisterDirect<InputElement, bool>(nameof(IsFocused), o => o.IsFocused);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Defines the <see cref="IsHitTestVisible"/> property.
|
|
|
/// </summary>
|
|
|
public static readonly StyledProperty<bool> IsHitTestVisibleProperty =
|
|
|
- AvaloniaProperty.Register<InputElement, bool>("IsHitTestVisible", true);
|
|
|
+ AvaloniaProperty.Register<InputElement, bool>(nameof(IsHitTestVisible), true);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Defines the <see cref="IsPointerOver"/> property.
|
|
|
/// </summary>
|
|
|
public static readonly DirectProperty<InputElement, bool> IsPointerOverProperty =
|
|
|
- AvaloniaProperty.RegisterDirect<InputElement, bool>("IsPointerOver", o => o.IsPointerOver);
|
|
|
+ AvaloniaProperty.RegisterDirect<InputElement, bool>(nameof(IsPointerOver), o => o.IsPointerOver);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Defines the <see cref="GotFocus"/> event.
|
|
|
/// </summary>
|
|
|
public static readonly RoutedEvent<GotFocusEventArgs> GotFocusEvent =
|
|
|
- RoutedEvent.Register<InputElement, GotFocusEventArgs>("GotFocus", RoutingStrategies.Bubble);
|
|
|
+ RoutedEvent.Register<InputElement, GotFocusEventArgs>(nameof(GotFocus), RoutingStrategies.Bubble);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Defines the <see cref="LostFocus"/> event.
|
|
|
/// </summary>
|
|
|
public static readonly RoutedEvent<RoutedEventArgs> LostFocusEvent =
|
|
|
- RoutedEvent.Register<InputElement, RoutedEventArgs>("LostFocus", RoutingStrategies.Bubble);
|
|
|
+ RoutedEvent.Register<InputElement, RoutedEventArgs>(nameof(LostFocus), RoutingStrategies.Bubble);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Defines the <see cref="KeyDown"/> event.
|
|
|
@@ -97,13 +97,13 @@ namespace Avalonia.Input
|
|
|
/// Defines the <see cref="PointerEnter"/> event.
|
|
|
/// </summary>
|
|
|
public static readonly RoutedEvent<PointerEventArgs> PointerEnterEvent =
|
|
|
- RoutedEvent.Register<InputElement, PointerEventArgs>("PointerEnter", RoutingStrategies.Direct);
|
|
|
+ RoutedEvent.Register<InputElement, PointerEventArgs>(nameof(PointerEnter), RoutingStrategies.Direct);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Defines the <see cref="PointerLeave"/> event.
|
|
|
/// </summary>
|
|
|
public static readonly RoutedEvent<PointerEventArgs> PointerLeaveEvent =
|
|
|
- RoutedEvent.Register<InputElement, PointerEventArgs>("PointerLeave", RoutingStrategies.Direct);
|
|
|
+ RoutedEvent.Register<InputElement, PointerEventArgs>(nameof(PointerLeave), RoutingStrategies.Direct);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Defines the <see cref="PointerMoved"/> event.
|