Yoh Deadfall
55710e8514
Used ToArray where it benefits over ToList
4 years ago
Max Katz
6a5bd396cb
Rename fields
4 years ago
Tim U
ad9b7c1027
Switch disposing order for TwoWayBindingDisposable
4 years ago
Nikita Tsukanov
e6c08a13d7
Added reflection-free API for weak events
4 years ago
Jeremy Koritzinsky
09c1a1157b
Fix calls to Expression.GetDelegateType
4 years ago
Jeremy Koritzinsky
e7afc15ca7
Implement the runtime side of the "method->Delegate" binding conversion for compiled bindings.
4 years ago
Steven Kirk
76667dbd0d
Finished adding nullable annotations to Avalonia.Base.
4 years ago
Steven Kirk
0bda763518
Added nullable annotations to Avalonia.Data. ( #7105 )
* Added nullable annotations to Avalonia.Data.
* ExpressionObserver root can be null.
4 years ago
Steven Kirk
dc3415c090
Nullable annotations for AvaloniaObject/AvaloniaProperty etc. ( #7078 )
* Add nullable annotations...
...to `AvaloniaObject`/`AvaloniaProperty`-related classes and a few other uncontroversial files.
* Check for null before first use.
* Don't need this check as base class does it.
4 years ago
Giuseppe Lippolis
d5420d6b79
fixes: Unnecessary re throw
5 years ago
Giuseppe Lippolis
94eeb7d97c
restore fix
5 years ago
Giuseppe Lippolis
44225c6614
fixes: Revert the fix, because the fix throw error CS8627 on Linux and macOS
5 years ago
Giuseppe Lippolis
97a920db72
Review suggestions apply
5 years ago
Giuseppe Lippolis
0309dda390
fixes: Replace CS8600 warning suppression with null-forgiving operator
5 years ago
Giuseppe Lippolis
82729a1bd9
fixes: some null annotation
5 years ago
Yoh Deadfall
0c20e122ba
Code deduplication
5 years ago
Yoh Deadfall
f14816144b
Compiler intrinsic based type nullability check
5 years ago
Wiesław Šoltés
834f3b01b8
Add Not value converter to BoolConverters
5 years ago
Miha Markič
97c33f432a
Applies spell checking on mostly comments, but also non public members and arguments
5 years ago
ShadowsInRain
35d0c688ca
Fix a memory leak in StreamNode.
5 years ago
Dariusz Komosinski
183a20acb8
Avoid boxing nullable values in BindingValue.
5 years ago
Steven Kirk
8959d55418
Correctly handle default values in batch update notifications.
We were previously calling `Optional.GetValueOrDefault<T>()` in order to convert an `Optional<object>` to an `Optional<T>` which meant that empty values were getting converted to default values, meaning that in certain cases change notifications weren't raised.
Add an `Optional<object>.Cast<T>()` methods (like we have in `BindingValue`) and use that in order to preserve empty values when ending a batch update operation.
5 years ago
Yoh Deadfall
b32cb382fb
Fixed popup positioning issue
5 years ago
Dariusz Komosinski
38ebab0916
Add info about how many styles are active and allow for showing inactive styles.
5 years ago
Dariusz Komosinski
11e2d9250c
Reduce memory pressure when using bindings.
5 years ago
José Pedro
12804e6bf9
Fixed static method to command conversion.
5 years ago
José Pedro
836a711ac5
Fixed indexer binding for null target property.
5 years ago
José Pedro
f281e81530
Fixed typo.
Whitespace fixes.
5 years ago
Max Katz
5109b00644
Reuse PropertyType in the ShouldNotSet method
5 years ago
Andrey Kunchev
4563c6cd24
Compiled path support for cast
6 years ago
Dariusz Komosiński
8555fed86b
Add failing tests for #4733 and fix property accessor.
6 years ago
Kieran Devlin
f3e0863f52
Updated exception type for validation exceptions so that DataValidationErrors can extract the user friendly message.
6 years ago
Giuseppe Lippolis
9270f58a9f
Implemented WeakPropertyChangedProxy to avoid memory leak
6 years ago
Giuseppe Lippolis
793f1b7453
Allow support at CanExecute when binding a method
6 years ago
Steven Kirk
de6553a0dc
Added nullable attributes and use them instead of `!`.
6 years ago
Steven Kirk
ed43a5753a
Handle BindingNotifications in LogicalNotNode.
Fixes handling binding notifications in `LogicalNotNote`. Previously if a `!` was placed in a binding that produced a `BindingNotification`, then `LogicalNotNode` tried to convert the `BindingNotification` to `bool` and failed, throwing an exception. Handle this properly.
6 years ago
Dariusz Komosinski
128fbee51f
Remove nullable and cref warnings.
6 years ago
Dariusz Komosiński
d451bb36b5
Use exception instead of an assert.
6 years ago
Dariusz Komosinski
0603bd1716
Fix errors caused by handling accessor fallback too late.
6 years ago
Steven Kirk
479d480ad9
Parameterize logger on area as well as level.
So we can filter our more logging calls early.
6 years ago
Dariusz Komosinski
3b7d8574e8
Try matching for INPC before matching methods.
6 years ago
Dariusz Komosinski
4b6d601bb7
Fix ternary op.
6 years ago
Dariusz Komosinski
999d5945c1
Optimize method accessor plugin
6 years ago
Dariusz Komosinski
229c8b7f12
Benchmark and simple optimization for INPC accessor.
6 years ago
Luis v.d.Eltz
b99834ccc6
Update BoolConverters.cs
6 years ago
Steven Kirk
95c04bcbec
Fix bug in BindingValue.
Wrong `BindingValueType` was being selected.
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Andrey Kunchev
6e54db32e9
fix #3692
6 years ago
Steven Kirk
fa81c42c56
BindingValue should be marked [Flags].
6 years ago
Steven Kirk
afce4460dd
Removed useless default values.
There's already an overload without the parameter.
6 years ago