Class EventBinding
- Namespace
- Crystal.Avalonia
- Assembly
- Crystal.Avalonia.dll
One event → command mapping used by EventToCommand.
public class EventBinding : AvaloniaObject, INotifyPropertyChanged
- Inheritance
-
AvaloniaObjectEventBinding
- Implements
- Inherited Members
-
AvaloniaObject.CheckAccess()AvaloniaObject.VerifyAccess()AvaloniaObject.ClearValue(AvaloniaProperty)AvaloniaObject.ClearValue<T>(AvaloniaProperty<T>)AvaloniaObject.ClearValue<T>(StyledProperty<T>)AvaloniaObject.ClearValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetHashCode()AvaloniaObject.GetValue(AvaloniaProperty)AvaloniaObject.GetValue<T>(StyledProperty<T>)AvaloniaObject.GetValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetBaseValue<T>(StyledProperty<T>)AvaloniaObject.IsAnimating(AvaloniaProperty)AvaloniaObject.IsSet(AvaloniaProperty)AvaloniaObject.SetValue<T>(StyledProperty<T>, T, BindingPriority)AvaloniaObject.SetValue<T>(DirectPropertyBase<T>, T)AvaloniaObject.SetCurrentValue<T>(StyledProperty<T>, T)AvaloniaObject.Bind(AvaloniaProperty, BindingBase)AvaloniaObject.CoerceValue(AvaloniaProperty)AvaloniaObject.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)AvaloniaObject.OnPropertyChanged(AvaloniaPropertyChangedEventArgs)AvaloniaObject.RaisePropertyChanged<T>(DirectPropertyBase<T>, T, T)AvaloniaObject.SetAndRaise<T>(DirectPropertyBase<T>, ref T, T)AvaloniaObject.InheritanceParentAvaloniaObject.this[AvaloniaProperty]AvaloniaObject.this[IndexerDescriptor]AvaloniaObject.DispatcherAvaloniaObject.PropertyChanged
Fields
CommandParameterProperty
Parameter when PassEventArgs is false.
public static readonly StyledProperty<object?> CommandParameterProperty
Field Value
- StyledProperty<object>
CommandProperty
Command to execute.
public static readonly StyledProperty<ICommand?> CommandProperty
Field Value
- StyledProperty<ICommand>
EventNameProperty
Routed event short name (e.g. Click) or CLR EventHandler name.
public static readonly StyledProperty<string?> EventNameProperty
Field Value
- StyledProperty<string>
PassEventArgsProperty
When true, pass event args to the command.
public static readonly StyledProperty<bool> PassEventArgsProperty
Field Value
- StyledProperty<bool>
RoutedEventProperty
Explicit routed event. Takes precedence over EventName and is safe for trimming/AOT.
public static readonly StyledProperty<RoutedEvent?> RoutedEventProperty
Field Value
- StyledProperty<RoutedEvent>
Properties
Command
Gets or sets CommandProperty.
public ICommand? Command { get; set; }
Property Value
CommandParameter
Gets or sets CommandParameterProperty.
public object? CommandParameter { get; set; }
Property Value
EventName
Gets or sets EventNameProperty.
public string? EventName { get; set; }
Property Value
PassEventArgs
Gets or sets PassEventArgsProperty.
public bool PassEventArgs { get; set; }
Property Value
RoutedEvent
Gets or sets the explicit routed event.
public RoutedEvent? RoutedEvent { get; set; }
Property Value
- RoutedEvent