Steven Kirk
eeb7271c34
Added failing test for #2584 .
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
3169f59da8
Introduced name scope chains
7 years ago
Nikita Tsukanov
fe5c1cec76
Use INameScope from IServiceProvider
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Steven Kirk
208361b8fa
Don't register controls with parent namescope.
This reverts the changes in #843 because they were causing problems, as described by #2512 .
This should however not cause #829 to reappear because since #843 was merged we moved to Portable.Xaml and we're now registering controls with the root namescope in the XAML engine: b4577a1631/src/Markup/Avalonia.Markup.Xaml/PortableXaml/AvaloniaXamlObjectWriter.cs (L67)
Fixes #2512
7 years ago
Steven Kirk
1cd900c856
Prevent leak when using TemplateBinding from a Setter.
When a `TemplateBinding` is used as a `Setter.Value`, then we need to make sure we don't use the `TemplateBinding` itself as the binding because this can cause a memory leak.
Replace `IRequiresTemplateInSetter` with `ISetterValue` which can be used to require a template in the setter for `Control` and can also be used to notify `TemplateBinding` that it's in a setter and so should always clone itself.
Fixes #2420
7 years ago
Steven Kirk
89d969b367
Added selector comma operator.
The comma selector can be used to separate a number different selectors, all of which will be applied to the control with an OR.
Fixes #1742
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
Steven Kirk
233adc9ca5
Added `:not()` style selector.
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
6f02e832f8
Added failing test for buggy TreeViewItem expander.
A selector of type `Control /template/ Control:class` is returning `AlwaysThisInstance` instead of `Sometimes`.
7 years ago
Nikita Tsukanov
feadefc1a1
Run Mono/FullNET tests for all "core" libs except Avalonia.Controls
7 years ago
Steven Kirk
94b2e2beca
Cache the styles for control types.
A lot of time was being spent calling `Attach` on styles that will never match a control. On the first pass, cache the styles that can match a particular control type and use this cache to bypass styles that will never match on subsequent passes.
8 years ago
Jeremy Koritzinsky
ac11e7b3a8
Detach all styles when a style is removed from a control.
8 years ago
Steven Kirk
af7e139ed4
Added failing test for #1698 .
8 years ago
Steven Kirk
fcbde80682
Added a couple of tests.
8 years ago
Steven Kirk
de35eb9fee
Updated ActivatedSubject.
Can be expressed more cleanly given the new `ActivatedObject`.
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
Benedikt Schroeder
27a666467c
Initial
8 years ago
Steven Kirk
30e78dc5b6
Only run unit tests on .net core.
This allows us to run them on linux.
8 years ago
José Pedro
7cccc6bda0
Use nameof where possible.
8 years ago
Jeremy Koritzinsky
eb7c010462
Retarget .Net Framework projects to 4.7
Works around dotnet/standard#567 .
8 years ago
Steven Kirk
409e40c8be
Added AvaloniaObject.IsAnimating(property).
Added a method to test whether a property on an object is currently animating.
8 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
8 years ago
Steven Kirk
4116bc54c0
Added failing unit test for #1260 .
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
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Steven Kirk
a72ce3671d
Added ResourceInclude.
9 years ago
Steven Kirk
ac8cc99f16
Started adding MergedDictionaries.
9 years ago
Steven Kirk
0e155bd2d4
Make dynamic resources work in more situations.
Fixes #492 in a fashion: `DynamicResource` now works for this scenario.
9 years ago
Steven Kirk
090a1ec8cf
Lazily initialize Styles.
Added an `IStyleHost.IsStylesInitialized` property to prevent the need for allocating empty `Styles` collections for many controls.
9 years ago
Steven Kirk
84aa27162f
Made a start adding Control/Application.Resources.
9 years ago
Steven Kirk
b5df0cdcee
Remove Style.Resources setter.
We don't need it.
9 years ago
Steven Kirk
fec2823537
StyleResources -> ResourceDictionary.
And move it to the `Avalonia.Controls` namespace.
9 years ago
Jeremy Koritzinsky
58b3ff90ab
Reduce build warnings by setting a few flags and not using deprecated overloads.
9 years ago
Steven Kirk
11586a4d4c
Don't have async void tests.
That's bad. Also un-skip binding expression tests.
9 years ago
Steven Kirk
af50118162
Added missing method.
Why didn't you notice that before, VS?
9 years ago
Steven Kirk
a232b137b5
Allow reuse of existing tooltip popup.
To do this, had to fix a problem where templated children weren't notified of being re-attached to a logical tree.
9 years ago
Wiesław Šoltés
872575b9b7
Set project OutputType
9 years ago
Steven Kirk
4730ee1c41
Fix spelling of descendant.
While "descendent" is an acceptable English spelling, "descendant" is the common spelling.
9 years ago
Wiesław Šoltés
e9d108a506
Fixed xml tags
9 years ago
Wiesław Šoltés
6b0a5c0449
Converted Avalonia.Styling.UnitTests to a new project system
9 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
9 years ago
Nikita Tsukanov
25c7be5b7a
Removed packages.config from csproj.files
9 years ago
Nikita Tsukanov
dc8a32d1b1
Run Avalonia.Base.UnitTests using `dotnet test`
9 years ago
Nikita Tsukanov
485fe1364e
Everything is buildable via MSBuild
9 years ago
Nikita Tsukanov
b6b5b9de88
Test now compile and can be run from visual studio
9 years ago