Steven Kirk
daf59b8497
Start/stop the renderer on window show/hide.
9 years ago
Steven Kirk
0f81420ee2
Don't remove root layer when hiding root.
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
69c43cb645
Fix DPI scaling with Skia.
9 years ago
Steven Kirk
3d76a5040c
Port Direct2D code from master.
9 years ago
Steven Kirk
e5e5edd80d
Removed files deleted on master.
9 years ago
Steven Kirk
11a01001ce
Fix possible null reference exceptions.
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
51688fa74b
Removed duplicate using statement.
9 years ago
Steven Kirk
9121b4d3e5
Implemented more deferred rendering.
Implemted geometry clips and opacity masks.
9 years ago
Steven Kirk
d6342e906a
Adjusted expected test output.
The output images were off-center.
9 years ago
Steven Kirk
3ce2479489
Implemented deferred opacity drawing.
9 years ago
Steven Kirk
80745a3616
Expose Visuals internals to render tests.
9 years ago
Nikita Tsukanov
b18a103834
PR notes
9 years ago
Nikita Tsukanov
0b756d0b8a
More null checks
9 years ago
Nikita Tsukanov
e883107ca3
Make PlatformImpl nullable and always check for null value
9 years ago
Steven Kirk
4fa6c1e7f4
Fixed invalid doc references.
9 years ago
Steven Kirk
16a47dac61
Apply margin before width/height.
Fixes #993 .
9 years ago
Connor Laderer
0a65816ae1
Corrected where statement because if its provided, it doesn't need a parameterless constructor
9 years ago
Connor Laderer
4ecca2bb53
Added overload of Start for AppBuilderBase
This will allow for easy use of Dependency Injection with Microsoft.Extensions.DependencyInjection the mainWindow can resolve any constructor objects it may have.
9 years ago
Nikita Tsukanov
760caf86ce
Bump version
9 years ago
Nikita Tsukanov
49aeb7cec2
Fixed binding to Task<T>
9 years ago
Steven Kirk
6f70acc7b0
Updated version to 0.5.0.
9 years ago
Nikita Tsukanov
c611fdc92b
Target AnyCPU
9 years ago
Nikita Tsukanov
f322924621
Use GTK3/Skia by default
9 years ago
Nikita Tsukanov
b87b3bb6da
Updated Skia to 1.57.1
9 years ago
Steven Kirk
f0e398960d
Made some classes internal and added docs.
9 years ago
Steven Kirk
804d1b66a1
Always allow D2D for the moment.
9 years ago
Steven Kirk
b942eefcd3
Added RenderScaling doc comment.
9 years ago
Steven Kirk
96f316eca6
Removed some small diffs from master.
9 years ago
Steven Kirk
88b0342e3d
Fix GetVisualRoot logic
It was plain wrong.
9 years ago
Steven Kirk
f678683472
Handle inserts before currently visible item.
If a virtualized list was scrolled and an item added before the first
visible item, then the list wasn't updated.
9 years ago
Steven Kirk
c9e90fd7fc
Fix type conversions.
They were not correct before. Also clarified the two types of
conversions:
- `TryConvertImplicit` implements the implicit conversions allowed by
the C# language
- `TryConvert` tries every means at its disposal to convert a value to a
type
`AvaloniaObject` uses only implicit conversions. This allows one to
write:
```
var control = new TextBlock
{
[Canvas.TopProperty] = 10
}
```
Without implicit conversions, this would fail because `Canvas.Top` is a
`double` whereas `10` is an `int`, however only implicit conversions
should be used here, otherwise the following would pass, which is
probably not what would be wanted:
```
var control = new TextBlock
{
[TextBlock.TextProperty] = observable, // Text is now the type name of
`observable`
}
```
`DefaultValueConverter` uses `TryConvert`, i.e. every conversion
possible.
Fixes #972 .
9 years ago
Nikita Tsukanov
b732f9ee26
Register renderer factory for the rest of the platforms
9 years ago
Nikita Tsukanov
06aa7780fb
Moved Direct2D initialization away from static constructor
9 years ago
Nikita Tsukanov
342128bbf1
Fixed CreateSwapChain
9 years ago
Nikita Tsukanov
9d0ee4ef1b
Moved Erase call to bitmap constructor
9 years ago
Nikita Tsukanov
982fee222c
Skia: Erase bitmap on drawing context creation
9 years ago
Nikita Tsukanov
59e79a6685
Removed unused field from WicBitmapImpl
9 years ago
Nikita Tsukanov
b9e378b694
Removed obsolete code from Skia.iOS
9 years ago
Steven Kirk
be83759cad
Rename Control -> Visual.
9 years ago
Steven Kirk
859e748605
Handle non Control-derived classes in DevTools.
Previously DevTools expected all controls to be derived from `Control`
which isn't necessarily always the case.
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
Nikita Tsukanov
7a66752f2e
Make CreateRenderTarget virtual
9 years ago
Nikita Tsukanov
012451a4db
Direct3D interop sample
9 years ago
Steven Kirk
1b517903c3
Fix merge errors.
9 years ago
Steven Kirk
3082bda498
Pass resized message to renderer.
9 years ago
Steven Kirk
cc48e6322d
Removed AvaloniaDisposable.
No longer used.
9 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
9 years ago