EventHandler EventArgs consistency #7010
workgroupengineering
started this conversation in
General
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the Avalonia repository when calling an EventHandler to which no argument needs to be passed there are two different conventions.
The classic one where EventArgs.Empty is used and the UWP one where null is used.
I think we should choose only one way.
UWP Style
Avalonia/src/Avalonia.Controls/SplitView.cs
Line 208 in d3b21f5
Classical
Avalonia/src/Avalonia.Controls/TextBoxTextInputMethodClient.cs
Line 37 in ba8dcbe
Beta Was this translation helpful? Give feedback.
All reactions