Jeremy Koritzinsky
bdaf4a2046
Fix #1182 .
9 years ago
Steven Kirk
d01e19e3f4
Added failing test for #1275 .
9 years ago
Steven Kirk
78cbaee3a0
FIx collection comparisons.
9 years ago
Steven Kirk
4676ac5fb2
Don't use ObserveOn in Bindings.
Instead of using `Observable.ObserveOn` in bindings, interface with `Dispatcher.UIThread` to schedule binding notifications on the UI thread. This saves a significant amount of memory.
9 years ago
Steven Kirk
2a87dbd6ca
Fix opacity mask rendering.
We're potentially creating a new immutable version of the opacity mask each time the `VisualNode` is updated. Need to implement comparison between mutable and immutable brushes.
9 years ago
Steven Kirk
1d1f31794e
Fix layers with opacity.
We were pushing the opacity twice.
9 years ago
Steven Kirk
e6b5df8d08
Simplified DeferredRendererTests,
9 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
9 years ago
Jeremy Koritzinsky
05eda280de
Refactor DeferredSetter logic to allow passing references to backing fields and utilizing that in all usages. Refactor SetAndRaise logic to be combined and simplified between the two use cases. Now the common case delegates to the less specialized case.
9 years ago
Jeremy Koritzinsky
ca9a4c4128
PR Feedback.
9 years ago
Jeremy Koritzinsky
d8efff505d
Clean up formatting. Fix bug in PriorityValue usage of DeferredSetter. Change DeferredSetter to use ConditionalWeakTable to not hold strong references to PriorityValue objects.
9 years ago
Steven Kirk
4f8f5e9c71
Added some benchmarks
Added some benchmarks to test setting and binding properties.
9 years ago
Steven Kirk
9609d93f3b
Don't create render layers for non-parent controls.
Only create a new render layer when a control has both an animating opacity _and_ children.
9 years ago
Steven Kirk
68bdbca899
Only create render layers when Opacity is animating.
Previously we were creating a new render layer for all controls with `Opacity != 1`. This was causing the `Calendar` page in ControlCatalog to render _really_ slowly. Instead, only create a new render layer when `Opacity` is being animated.
Also don't even render controls where `Opacity == 0`.
9 years ago
Steven Kirk
409e40c8be
Added AvaloniaObject.IsAnimating(property).
Added a method to test whether a property on an object is currently animating.
9 years ago
Steven Kirk
3243e0fd15
Added failing test for #1303
`TemplateBinding_With_Null_Path_Works` is a failing test for #1303 , also added a passing test for the same thing with `Binding`: `Binding_With_Null_Path_Works`.
9 years ago
Steven Kirk
b40be8b1c4
Fix error in AvaloniaList.MoveRange event.
It was raising the event with the offset `newIndex` rather than the `newIndex` that was passed.
9 years ago
Steven Kirk
fc7a83ee72
Fixed panel collection change actions.
As suggested in #1286
9 years ago
Steven Kirk
26b2771864
Added failing test for #1297
9 years ago
Steven Kirk
546cbca0ef
Added failing test for #1247 .
9 years ago
Steven Kirk
2e8521e690
Added failing test for #1271 .
9 years ago
Jeremy Koritzinsky
f9b578ab0e
Make AncestorType required for ancestor searching via the visual tree.
9 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
9 years ago
Nikita Tsukanov
9152cbbe72
Added a unit test for attached properties with namespace
9 years ago
Steven Kirk
ebc66cfaac
Added failing test for #1255 .
9 years ago
José Pedro
755531631e
Implemented three states on ToggleButton, CheckBox and RadioButton.
9 years ago
Steven Kirk
4116bc54c0
Added failing unit test for #1260 .
9 years ago
Jeremy Koritzinsky
edf2018149
Refactored tests to move XAML Binding class tests into Avalonia.Markup.Xaml.UnitTests.
9 years ago
Jeremy Koritzinsky
0440794d79
Clean up tests and fix PR feedback.
9 years ago
Jeremy Koritzinsky
3b1b3cb9cd
Change test logic to working version.
9 years ago
Steven Kirk
2bd26bd9b8
Added failing test for #1245 .
9 years ago
Jeremy Koritzinsky
4469bafe28
Fix incorrect assert in RangeBaseTests.
9 years ago
Jeremy Koritzinsky
8acf94d3e4
Fix bug in DelayedSetter and change recursive delayed setting to prevent possible issues down the road.
9 years ago
Jeremy Koritzinsky
da8267ade7
Fix last binding test. Two-way bindings via the indexer binding should not cause a PriorityBindingEntry to be created in the target. So instead use SetValue + GetObservable (similar to our higher level implementations in Avalonia.Markup).
9 years ago
sdoroff
bd17aeffe2
Adds Unit Tests for the Calendar Control
9 years ago
Jeremy Koritzinsky
440f2cafc5
Fix SelectedItemsControl and RangeBase Stackoverflow bugs.
9 years ago
Jeremy Koritzinsky
6486ffc77f
Apply fix to PriorityValue, which works for StyledProperty bindings where the bindings don't have the same priority.
9 years ago
Jeremy Koritzinsky
b5ee3077bc
Fix direct properties by delaying setting values until after any currently running property changed notifications for this property finish running.
9 years ago
Nikita Tsukanov
a4c9f1e400
Make ShapeLayoutTests use MockPlatformRenderInterface
9 years ago
sdoroff
7db5ae8db9
Added unit tests
9 years ago
Nikita Tsukanov
7affba4763
Cleaning splat
9 years ago
ARSolog
8a8a6de9a6
Update ExpressionObserverTests_DataValidation.cs
fix Validation_Plugins_Send_Correct_Notifications to non 'en-us' CultureInfo.
9 years ago
ARSolog
9539979a6e
Update DataAnnotationsValidationPluginTests.cs
fix unit test to non 'en-us' CultureInfo
9 years ago
Jeremy Koritzinsky
8d22a25a66
Bring back original logic of test. Still trying to figure out what's going on.
9 years ago
Steven Kirk
181dd53e58
Notify DataContextChanged down tree.
When a data context changes, it should be notified to all descendant controls who inherit the data context. This allows the `SelectingItemsControl` to defer setting the selected item until the `DataContext` has changed for the whole tree.
Renamed `OnDataContextChanging`/`OnDataContextChanged` to `OnDataContextBeginUpdate`/`OnDataContextEndUpdate` because `DataContextChanged` is now called from the property changed notification.
Fixes #507 .
9 years ago
Steven Kirk
ca0e346f49
Added failing test for #507 .
9 years ago
Steven Kirk
cc147db28d
Added more tests.
One failing.
9 years ago
Steven Kirk
d6b6a0fa96
Refactored InstancedBinding creation.
Previously it wasn't clear which constructor on `InstancedBinding` must be called for a particular binding mode. Refactored the constructors:
- We now have a single public ctor which takes an `ISubject`, as a subject can be used for all binding modes.
- Instanced bindings with other sources such as single values and `IObservables` are now constructed via static methods which only allow the correct sources for that binding mode
9 years ago
Steven Kirk
ca7584ce3f
Added failing test for #1218
9 years ago
Jeremy Koritzinsky
745517f68e
Updated usage of Static and Type to be x:Static and x:Type.
9 years ago