Steven Kirk
c4da0f75b8
Added another failing ContextMenu leak test.
6 years ago
Steven Kirk
323cfdca3a
Make ContextMenu leak tests fail again.
By adding focus/input manager.
6 years ago
Steven Kirk
b0c79e3094
Added failing leak test for #3738 .
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
Steven Kirk
f16080d00b
Added failing leak test for #3545 .
6 years ago
Dariusz Komosinski
9e812f24b9
Add HitTestFirst that allows for hit testing first matching visual. Implement better enumerator that can be used for both first and multiple hits.
6 years ago
Steven Kirk
bc5a101faf
Render changes to child order/zindex.
Fixes #2714 .
7 years ago
Nikita Tsukanov
b0111a2c48
Canvas leak?
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
3169f59da8
Introduced name scope chains
7 years ago
Nikita Tsukanov
4df55f733d
Manually manage the name scope for control leak tests
7 years ago
Nikita Tsukanov
49b8d24d0b
Fixed LeakTests
7 years ago
Steven Kirk
3992e0e855
Added failing test for #2420 .
7 years ago
Steven Kirk
38a3db18cb
Added IRenderer.SceneInvalidated event.
And use this event to trigger an update of the mouse pointer-over state.
7 years ago
Jeremy Koritzinsky
72708cae67
Fix namespace build break.
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
Steven Kirk
5cc5b91930
Fix xunit warnings.
9 years ago
Steven Kirk
880cf657ec
Accept root in IRenderer.HitTest.
Fixes #1221 .
9 years ago
Steven Kirk
22bda08a90
Lazily initialize DataTemplates.
Added an `IDataTemplateHost` interface with a `IsDataTemplatesInitialized` property to prevent the need for allocating empty `DataTemplates` collections for many controls.
9 years ago
Steven Kirk
d2eca3968b
Removed IRendererFactory.
Make the `ITopLevelImpl` create the renderer instead.
9 years ago
Nikita Tsukanov
eb6bfd3de8
Moved layout manager from service locator to ILayoutRoot
9 years ago
Steven Kirk
96f316eca6
Removed some small diffs from master.
9 years ago
Steven Kirk
9a015afa99
Fixed leak tests.
`IRenderer` mock was keeping hold of references passed to `AddDirty` -
tried resetting the mock but references were still held, so replaced the
mock `IRenderer` with a `NullRenderer` that fixes the problem.
9 years ago
Steven Kirk
69a06e452e
Fixed some Visuals unit tests.
Ported some stuff from `scenegraph` that was missed in #956 , which fixes
some of the failing Avalonia.Visuals.UnitTests.
9 years ago
Steven Kirk
4e719262c4
Make WindowBase.IsVisible return correct value.
`WindowBase.IsVisible` now tracks the visibility of the window. Still
needs to call `Show` and `Hide` when changed.
9 years ago
Nikita Tsukanov
c93a6235aa
Make sure that Renderer is disposed when TopLevel is closed
9 years ago
Steven Kirk
b5e93b67fe
Make Window.IsVisible track window visibility.
9 years ago
Steven Kirk
d91d1829ac
Initial implementation of scenegraph hit testing.
Based solely on control bounds as before.
10 years ago
Steven Kirk
00f3ca78ba
FIx control leak tests.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
4057670f43
Ensure that PerspexObject bindings are unsubbed.
10 years ago
Steven Kirk
ba008e987d
Demonstrate leak in test.
10 years ago
Steven Kirk
b227e8623f
Removed bogus test.
It wasn't testing the actual leak and relied on messy reflection so
removing it.
10 years ago
Steven Kirk
768c5c0f5e
Added new failing leak test.
10 years ago
Steven Kirk
667c17af4b
Removed leak tests and added failing test.
These were from a time when templates were applied when
attached/detached from visual tree. Template controls are now retained
until another template is applied.
10 years ago
Steven Kirk
2283cfa486
Started refactoring unit tests.
Added a shared test project with a UnitTestApplication and use it in
LeakTests.
10 years ago
Steven Kirk
5489487131
Make LayoutManager global.
Also made a few other changes along the way:
- Add MaxClientSize to ILayoutRoot
- Store IRenderRoot in Visual and use that to calculate
IsAttachedToVisualTree
- Make Affects* methods take multiple properties
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
bf30371721
Removed ITreeDataTemplate.IsExpanded.
10 years ago
Steven Kirk
1841e7ad7a
Start allowing Setters to contain bindings.
This is needed so that things like the following can be done:
<TreeView>
<TreeView.Styles>
<Style Selector="TreeViewItem">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"/>
</Style>
</TreeView.Styles>
<TreeView>
(At the moment we have TreeDataTemplate.IsExpanded but this isn't good
enough: it only supports setting IsExpanded on creation of the item with
no binding.)
With this commit, setters can now contain bindings, but they aren't yet
applied correctly. As part of this commit, classes related to binding
have been moved to the Perspex.Data namespace.
10 years ago
Steven Kirk
dc757851c1
Added failing Carousel leak test.
As found by @donandren .
11 years ago
Steven Kirk
21bd841258
Made templated child leak test fail.
11 years ago
Steven Kirk
aa6b9045bc
Added new leak test.
11 years ago
Steven Kirk
f20e26ea38
TextBox ScrollViewer doesn't get released
When TextBox.Template is cleared. This is showing up as a leak when a
TextBox is contained in a TabControl and tabs get changed.
11 years ago
Steven Kirk
260f2a4cc4
Added some more leak tests.
All passing.
11 years ago
Steven Kirk
9b8bff1ba4
Added leak test for named controls.
As previously they were leaking before recent name scope fixes.
11 years ago
Steven Kirk
4d13d1313c
Added some memory leak unit tests.
Using JetBrains' dotMemory Unit testing framework. Currently shows that
TreeView does not get freed.
11 years ago