danwalmsley
114f77e1c0
Merge pull request #3787 from AvaloniaUI/fixes/3784-large-window-content
Fix Window/PopupRoot arrange.
# Conflicts:
# src/Avalonia.Controls/Window.cs
# tests/Avalonia.Controls.UnitTests/WindowTests.cs
# tests/Avalonia.Layout.UnitTests/FullLayoutTests.cs
# tests/Avalonia.UnitTests/MockWindowingPlatform.cs
6 years ago
Steven Kirk
e7e57d0e91
Fix text rendering where TextAlignment != Left.
The renderer was using the wrong bounds for text where `TextAlignment != Left` as seen in #1625 . To fix this, change `FormattedTextImpl.Size` to `Bounds`, which returns a rect that takes into account the text alignment and similarly change `FormattedText.Measure` to return a `Rect` instead of a `Size.
Fixes #1625 .
7 years ago
Wiesław Šoltés
338fe1d5eb
Use thickness instead of width and height
7 years ago
Nikita Tsukanov
2741fec63e
Register cursor factory for tests
7 years ago
Wiesław Šoltés
29cef8a7de
Update FullLayoutTests.cs
7 years ago
wieslawsoltes
5d8c6beed0
Fix tests
7 years ago
wieslawsoltes
1d8ea08d0b
Try to fix tests
7 years ago
Jeremy Koritzinsky
4ec647b870
Make our unit tests support library (Avalonia.UnitTests) target netstandard2.0 so we don't have to worry about targetting .NET Framework on linux.
8 years ago
Steven Kirk
8a80a724d7
Implement disabling of ListBox scrollbars.
Fixes #1344 .
8 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
8 years ago
Eli Arbel
aee42bad6c
Add scroll bar & slider buttons
9 years ago
Steven Kirk
e81b22b9d2
IResourceProvider -> IResourceNode
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
d1fee611bf
IResourceHost -> IResourceProvider.
9 years ago
Steven Kirk
84aa27162f
Made a start adding Control/Application.Resources.
9 years ago
Nikita Tsukanov
eb6bfd3de8
Moved layout manager from service locator to ILayoutRoot
9 years ago
Steven Kirk
e6cb529878
Ported immutable media impls from scenegraph.
The deferred renderer requires immutable objects for drawing as it
renders on a separate thread.
9 years ago
Steven Kirk
376535b198
Make IFormattedTextImpl immutable.
Previously `IFormattedTextImpl` had `SetForegroundBrush` which set
mutable state. Make `FormattedText` fully mutable (before it was kinda
mutable, kinda immutable) and create immutable `IFormattedTextImpl`s on
demand.
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
886a65beaa
Use dotnet test for layout and controls tests
9 years ago
Nikita Tsukanov
d17b32d7bd
Fixed tests
9 years ago
Steven Kirk
b5e93b67fe
Make Window.IsVisible track window visibility.
9 years ago
Steven Kirk
6afa000c42
Added a render loop.
Rather than repainting whenever, this adds a render loop which is called
N times per second. IRenderQueueManager and ITopLevelRenderer have been
removed, replaced by IRenderer.
10 years ago
Nikita Tsukanov
07fea3befa
Added RuntimePlatformInfo
10 years ago
Nikita Tsukanov
3af869f49f
Moved IPclPlatformWrapper and IAssetLoader to a separate assembly
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
338b71b204
Moved IVisual to Perspex.VisualTree.
10 years ago
Steven Kirk
93b4d810b9
Moved scaling to per-window.
Always returning a scaling factor of 1 currently.
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
Nikita Tsukanov
abd54620cd
Moved WindowingPlatformMock
10 years ago
Nikita Tsukanov
27e1d4accb
Fix for FullLayoutTests
10 years ago
Steven Kirk
b3139182f1
Make layout tests work again.
10 years ago
Nikita Tsukanov
a61fdc86b2
Removed IPlatformThreadingInterface mock since it's broken anyway
10 years ago
Nikita Tsukanov
c8e617231c
Moved render-related code from TopLevel to a separate class
(needed for wm stuff)
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Steven Kirk
04feb4bf32
Fix failing layout test.
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
d11d779414
Trying to fix capitalization of tests and docs AGAIN.
11 years ago
Steven Kirk
1a2fba4798
Revert "Fixed casing of Docs and Tests directories."
This reverts commit 845b28a2c2 .
11 years ago
Steven Kirk
845b28a2c2
Fixed casing of Docs and Tests directories.
11 years ago
Steven Kirk
6bbae51e26
Fix failing tests.
11 years ago
Steven Kirk
b321db9718
Fix couple of failing tests.
11 years ago
Steven Kirk
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
fba2633ab9
Renamed Decorator.Content property as Child.
11 years ago
Steven Kirk
c27ddbb17c
Removed ActualSize property - use Bounds instead.
11 years ago
Steven Kirk
0d1ebc1bd8
Remove debug code.
Accidentally committed.
11 years ago
Steven Kirk
552421f8d2
Fix failing layout test.
11 years ago
Steven Kirk
5a1aca2876
Make template find methods to extension class.
11 years ago