Steven Kirk
4f40082fad
Disallow overriding Equals and GetHashCode.
On `AvaloniaObject`s.
7 years ago
Dariusz Komosinski
ad994a685c
Fix PriorityValue usage of DeferredSetter. Implement slower path in DeferredSetter that deals with callbacks.
7 years ago
Dariusz Komosinski
48be9dc260
Remove old DeferredSetter implementation. Cleanup code, add license info.
7 years ago
Dariusz Komosinski
812c5f30c9
Remove SetAndRaise callback handling. Move event raising to setter.
7 years ago
Nikita Tsukanov
6a90251654
Use custom synchronous task-like awaitable
7 years ago
Steven Kirk
ecabeba4d1
Fix conversion of null in DefaultValueConverter.
`null` is a valid value for a non-value type so don't convert it to `{unset}`.
Fixes #1701 .
7 years ago
José Pedro
433c70a6c8
Added BindingOperations.DoNothing.
Added tests.
7 years ago
José Pedro
39b19e8ff3
XML comment fixes.
7 years ago
OronDF343
b519ecc121
Support StringFormat without Converter in MultiBinding
7 years ago
Wiesław Šoltés
f0ada1c82f
Update MathUtilities.cs
7 years ago
Jumar Macato
4fbd443386
Add WPF's UIElement.RoundLayoutValue to MathUtilities.
7 years ago
Jumar Macato
aea3bbcbd0
Part 6 of n
7 years ago
Jumar Macato
9f1d70e592
Part 4 of n
Removed more legacy stuff
Added Math Functions needed from WPF's DoubleUtil.
7 years ago
Nikita Tsukanov
bc219dbe70
Compiler warnings
7 years ago
Steven Kirk
197d7d4904
Update OneWayToSource binding when DataContext changes.
Fixes #2470
7 years ago
Nikita Tsukanov
dbf6c3a148
Entire control catalog is now loaded from precompiled xaml
7 years ago
Nikita Tsukanov
6ab1fbd432
Inject the call to compiled xaml to x:Class-type
7 years ago
Nikita Tsukanov
a3f3a06478
Emit compiled XAML from msbuild task
7 years ago
José Pedro
129f8ca535
XML comment fixes.
7 years ago
Dariusz Komosinski
24f208bab1
!R Rework deferred setter for better performance.
7 years ago
Dan Walmsley
5128f70f48
whitespace.
7 years ago
Dan Walmsley
6b2d9a020f
Revert "Add GCNotifier class."
This reverts commit d42b22d5e8 .
7 years ago
Dan Walmsley
d42b22d5e8
Add GCNotifier class.
7 years ago
Nikita Tsukanov
a89b6128dd
Call Compact on Add
7 years ago
José Pedro
48dccadfb0
Fixed argument exception constructor calls.
Use nameof where possible.
Fixed wrong check in RelativeSource.AncestorLevel.
7 years ago
Nikita Tsukanov
4af9b22c59
Introduced WeakEventHandlerManager
7 years ago
Steven Kirk
6dcd634a87
Missed change from merge.
7 years ago
Steven Kirk
6961d55e7a
Only log binding errors when attached to a tree.
7 years ago
Nikita Tsukanov
58de2aaac0
WIP2
7 years ago
Nikita Tsukanov
f14aac365b
WIP
7 years ago
Steven Kirk
131a4d90ef
Remove Avalonia.ISupportInitialize.
This is a relic from when we were targeting a PCL profile that didn't have `System.ComponentModel.ISupportInitialize`. Now that we have that, use it instead.
7 years ago
mstr2
039991da68
Fixed a bug where AddOwner would add a property to AvaloniaPropertyRegistry's property list more than once
7 years ago
José Pedro
fa8d8c896d
Removed redundant bool comparisons.
7 years ago
ahopper
2f7c6371a5
use XDocument to deserialize assets
7 years ago
mstr2
9d3fd84a7a
Fixes a bug where properties would be added multiple times to the global AvaloniaPropertyRegistry._properties list.
7 years ago
Steven Kirk
f75f85af2b
Fix order of inherited property changed events.
Previously `PropertyChanged` was raised on the child before the parent because the inherited value change was being notified by listening to the parent `PropertyChanged` event, and this event handler was added first.
Added an `InheritablePropertyChanged` event which will be called only after all other property changed events have been raised and only for inheritable properties.
7 years ago
Steven Kirk
d3e8752f15
Make ObservableStreamPlugin work with value types.
Use reflection to call `Observable.Select` on the source observable to box the value.
7 years ago
Steven Kirk
b91df127ea
Remove :valid and :invalid pseudoclasses.
`:valid` and `:invalid` pseudoclasses are being added to all `ContentControls` simply in order to show/hide the `ContentPresenter` in `CheckBox`. Instead of this, add some `ObjectConverters` and use them to set the visibility of the `ContentPresenter.`
Also renamed the converters in `StringConverters` to add an `Is` prefix as the `ObjectConverters` didn't look right as just `Null` and `NotNull`.
7 years ago
mstr2
5cbe89e9d6
Switched AvaloniaPropertyRegistry._properties from Dictionary to List
7 years ago
José Pedro
dcb09a145a
XML comment fixes.
7 years ago
José Pedro
97d624a9ae
Use nameof where possible.
7 years ago
mstr2
814222a15d
Reduced linear search, made FindRegistered method internal
7 years ago
mstr2
c5e4996da2
Improved performance of value lookup in AvaloniaObject's ValueStore
7 years ago
Jeremy Koritzinsky
44bf2ee721
Add unit test and fix #2149 .
7 years ago
Nikita Tsukanov
d470461202
More thread safety and ownsImpl argument for DrawingContext
7 years ago
Nikita Tsukanov
d532223a5a
Switched to post-processing nuget packages from AggregatePackage SDK
7 years ago
Nikita Tsukanov
6347a610c7
Switched back to #if since ReferenceOutputAssembly doesn't work properly for classic project format
7 years ago
Nikita Tsukanov
3279cbd4e8
Fixed some review comments
7 years ago
Steven Kirk
97db5ec657
Cache AvaloniaObject initialization notifications.
When an `AvaloniaObject` is created, it notifies each of the `AvaloniaProperties` registered on it that they have been initialized on a new object. Instead of calling `GetDefaultValue` each time, cache the default values.
8 years ago
Andrey Kunchev
458d45bb49
fix problem in complex binging chain, when a null value in chain reset current value to all subsequent expression nodes, so next change is starting on clean
7 years ago