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
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
474aa60403
Don't remove pseudoclasses when clearing Classes.
Fixes #1080
9 years ago
Steven Kirk
d2eca3968b
Removed IRendererFactory.
Make the `ITopLevelImpl` create the renderer instead.
9 years ago
Steven Kirk
c4aa2197b2
Fixed TreeView navigation.
Fixes #277 .
9 years ago
Steven Kirk
bb11b302b8
Added failing unit test for #277 .
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
Steven Kirk
0d492ca16a
Update ContentPresenter when ContentTemplate changed.
9 years ago
Steven Kirk
1150af791c
Reworked how ContentPresenter child is updated.
Update immediately when attached to a logical tree. Also separate tests for different scenarios.
9 years ago
Steven Kirk
daf59b8497
Start/stop the renderer on window show/hide.
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
Steven Kirk
5a819c1c87
Make Window.OpenWindows readonly
And hack around the fact that it's static in unit tests.
9 years ago
Steven Kirk
a7ff93450e
Fixed problems with Windows.OpenWindows.
- Showing a window was causing it to be added to the collection twice because `Show()` called `IsVisible = true` which called `Show()`
- The window wasn't getting removed when the `PlatformImpl` signalled it was closed
9 years ago
Steven Kirk
153a4532ae
Added failing test for #886 .
9 years ago
Steven Kirk
5f845632ce
Undo bad merge of csproj.
Not sure how these changes got made.
9 years ago
Jeremy Koritzinsky
aacb052253
Made changes requested by @grokys .
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
e9968a7606
Make WindowBase.IsVisible show/hide window.
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
Wiesław Šoltés
ad65b6192e
Moved inports to test projects
9 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
9 years ago
Wiesław Šoltés
6d557f7819
Already included in coretests.props
9 years ago
Steven Kirk
d7703d619c
Fixed failing test.
And removed `TestServices.WindowImpl` as it was being ignored.
9 years ago
Steven Kirk
65dd1a423b
Use the default compile items in unit tests.
For the tests that have been ported to .net core at least.
9 years ago
Nikita Tsukanov
6cf037ad7c
One liners
9 years ago
Nikita Tsukanov
66ac05b2c2
Removed <Name> elements from new projects
9 years ago
Nikita Tsukanov
d1caaaca3e
Removed <Project>
9 years ago
Nikita Tsukanov
886a65beaa
Use dotnet test for layout and controls tests
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
Nikita Tsukanov
b0a063838f
Migrated to PackageReference
9 years ago
Steven Kirk
a5f03f7a89
Don't need to pass visual brush renderer when creating render target.
9 years ago
Steven Kirk
71c6c572ac
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
9 years ago
Steven Kirk
6036bd5998
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
9 years ago
Steven Kirk
2b1d4e555e
Fix failing test.
9 years ago
Nikita Tsukanov
026c943055
Fixed tests
9 years ago
Nikita Tsukanov
d17b32d7bd
Fixed tests
9 years ago
Steven Kirk
ab9cf03eff
WIP: Delegate back to render for VisualBrushes.
`VisualBrush`es need to get delegated back to the renderer for
rendering, so added an `IVisualBrushRenderer` interface which is
implemented by the renderers, and pass this when creating drawing
contexts. Only currently implemented/tested for D2D and
`ImmediateRenderer`.
9 years ago
Steven Kirk
240bc4d2ca
Fix horizontal scroll with virtualized items.
Fixes #849
9 years ago
Steven Kirk
90f4cfbea3
Register namescoped controls with parent namescope.
If we have e.g. a named UserControl in a window then we want that
control to be findable by name from the Window, so register with both
name scopes. This differs from WPF's behavior in that XAML manually
registers controls with name scopes based on the XAML file in which the
name attribute appears, but we're trying to avoid XAML magic in Avalonia
in order to made code-created UIs easy. This will cause problems if a
UserControl declares a name in its XAML and that control is included
multiple times in a parent control
(as the name will be duplicated), however at the moment I'm fine with
saying "don't do that".
Fixes #829 .
9 years ago
Steven Kirk
799ffe72b8
Fix erroneous test expectations.
9 years ago
Steven Kirk
44f6d12157
Add failing test for #834 .
9 years ago
Steven Kirk
f73a10b593
Clear ContentPresenter data context.
When assigning a control to `ContentPresenter.Content` after a
non-control the data context should get cleared. Fixes another problem
in #831 .
9 years ago
Steven Kirk
b5e93b67fe
Make Window.IsVisible track window visibility.
9 years ago
Steven Kirk
a967c9bf82
Make DPI scaling work again.
9 years ago
Steven Kirk
6d3ca92a4c
WIP: Getting resizing working.
9 years ago
susloparov
8704235b66
Added test for GridSplitter
9 years ago
susloparov
2e813c867d
Removed Orientation Property from GridSplitter
It's possible to unambiguously detect orientation based on
Column/RowDefenitions or other elements.
10 years ago