Steven Kirk
f8eceb4af9
Update usages of ItemsControl Items/ItemsSource.
- Use `ItemsSource` when appropriate
- When `Items` is appropriate, don't use the setter
3 years ago
Steven Kirk
40ab20146f
Clear data validation when binding completes.
3 years ago
Steven Kirk
a899185afb
Update data validation from EffectiveValue.
Requires `ValueEntry`/`BaseValueEntry` to be available to `EffectiveValue<T>`.
Also change the tests to only test values coming back from the model in the style binding tests, as they don't work when setting local values currently. This will be fixed later.
3 years ago
Steven Kirk
23267b7967
Added additional failing tests.
3 years ago
Steven Kirk
eabc9493fa
Added tests for styled property data validation.
3 years ago
Tom Edwards
6d49ffc955
Added tests for binding value types to null
3 years ago
Max Katz
2d1d27bc2e
Fix TemplateBinding with converter inside of MultiBinding
3 years ago
Steven Kirk
67c9221d3c
Tweaked InstancedBinding API.
- Remove `Value` from the API, will always contain an `IObservable<object?>` from now
- Remove subject from the API, caller can try to cast the observable itself
3 years ago
Max Katz
59d7874b1d
Replace System.Reactive with internal extensions
3 years ago
Steven Kirk
6f03f1c3d6
Removed ITemplatedControl.
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Steven Kirk
1945345cd1
Rename TemplatedParent priority to Template.
It no longer represents just `TemplatedParent` bindings, but every value or binding created by a template.
3 years ago
Giuseppe Lippolis
de4b55f8ee
feat(tests): Address rule CA1822
4 years ago
Steven Kirk
0360af6780
Added failing test for #8672 .
4 years ago
Takoooooo
8e57d0b7c6
Fix bindings to Types.
4 years ago
Max Katz
49aad04861
Apply target's TemplatedParent to a Flyout and Tooltip, when it's opened ( #8412 )
* Apply target's TemplatedParent to a Flyout and Tooltip, when it's opened
* Add flyout and tooltip leak tests
* Fix Flyout_Is_Freed
4 years ago
Takoooooo
b0f7871eec
Don't allow bindings to private methods.
4 years ago
Nikita Tsukanov
a5b2eb08d4
Added support for IReflectableType in InpcPropertyAccessorPlugin
4 years ago
Steven Kirk
5763a914fe
Remove generics from IAvaloniaObject.
4 years ago
Nikita Tsukanov
b6219db4ad
More Dispatcher.UIThread.RunJobs in tests
4 years ago
Giuseppe Lippolis
411b227834
Adding test
5 years ago
Steven Kirk
5e16897137
Unwrap BindingNotification in MultiBinding.
And add some unit tests.
6 years ago
Steven Kirk
5397efc4f0
Remove some left-over copyright headers.
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
José Pedro
1ba4c68a35
Implemented TargetNullValue for bindings.
6 years ago
Steven Kirk
b8717bf6dc
Tidy up API.
6 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
6 years ago
Steven Kirk
15e388da75
Adding failing binding tests.
- `OneTime` bindings are failing to release their subscription if the `DataContext` is unset when the binding is made.
- Combining `OneTime` and `OneWayToSource` bindings are causing an NRE. The NRE is being caught but it too results in a subscription being leaked.
7 years ago
Steven Kirk
661254c9cf
Add issue number to test.
7 years ago
Dariusz Komosiński
9acf82d47b
!B Fix expression nodes not knowing if last value is actually null or dead.
7 years ago
Steven Kirk
49f54b5275
Added failing test for #2912 .
7 years ago
Dariusz Komosinski
5f1a003e4f
Add failing unit test for TwoWay binding issue.
7 years ago
Nikita Tsukanov
fe5c1cec76
Use INameScope from IServiceProvider
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
OronDF343
b519ecc121
Support StringFormat without Converter in MultiBinding
7 years ago
Steven Kirk
d22282c151
Added failing tests for #2470 .
7 years ago
OronDF343
d065568be9
Added MultiBinding.StringFormat + Relevant unit tests
7 years ago
Steven Kirk
d37615bea8
Added failing test for #1898 .
Plus a couple of other empty binding path tests.
7 years ago
Steven Kirk
d75af69307
Fix tests.
7 years ago
Andrey Kunchev
617b5708c2
add failing tests for Relative Source in Binding
7 years ago
Andrey Kunchev
a955f73a3e
failing unittest for nested multibinding
8 years ago
Steven Kirk
b163892a7d
Make TemplateBinding.Converter work.
Also:
- Add some unit tests
- Make `TwoWay` bindings back to the parent control work at `LocalValue` priority
Fixes 1737
8 years ago
Steven Kirk
0945478357
Fix grammar.
8 years ago
Steven Kirk
6a14747eb6
StringFormatConverter -> StringFormatValueConverter
8 years ago
Steven Kirk
70440517ca
Initial implementation of StringFormat.
XAML tests failing because of https://github.com/cwensley/Portable.Xaml/pull/106
8 years ago
Jeremy Koritzinsky
b38b46a280
PR Feedback.
8 years ago
Jeremy Koritzinsky
da0ab8b681
Move the styling system up the stack to live right below Avalonia.Animation since it has no dependencies on anything further down the dependency chain
8 years ago
Jeremy Koritzinsky
cf8244b37a
Move current contents of Avalonia.Markup to Avalonia.Base. Move Avalonia.Markup.Xaml.Data/Parser classes to Avalonia.Markup since they're not Xaml-specific.
Use pattern-matching switch.
Fix bug from cleanup.
8 years ago
Jeremy Koritzinsky
e8c32bf801
Preliminary support. Indexers require more work since the compiler doesn't generate IndexExpressions (they weren't in S.L.Expressions v1 so they aren't auto-genned).
8 years ago
Jeremy Koritzinsky
8d8480c086
Allow indexer bindings to be at the start of a binding path.
8 years ago