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
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
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
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
Steven Kirk
4a6deb7d8b
Added some doc comments.
And removed some tabs.
9 years ago
Steven Kirk
92331915b4
Enable SharpDX EnableReleaseOnFinalizer.
We need to enable to avoid memory leaks this as we're not doing cleanup
of SharpDX objects ourselves.
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
Wiesław Šoltés
0e6f48e8a0
Use different FromEventPattern method
Fixes #946
9 years ago
Wiesław Šoltés
a26c261aad
Fixed OnPointerReleased parameter type
9 years ago
Steven Kirk
5be8f17eb1
Make all mutable brushes implement IMutableBrush.
9 years ago
Nikita Tsukanov
70abfca7d0
Implemented support for running on top of fbdev and libevdev2
9 years ago
Wiesław Šoltés
e31d8f3bca
Renamed SkiaSharp.Linux.props to SkiaSharp.Desktop.props
9 years ago
Wiesław Šoltés
d0fbbc9182
Removed nuget libraries for Android and iOS targets
They are part of Xamarin bcl.
9 years ago
Steven Kirk
d61d95af19
Ported changes to Avalonia.Input from scenegraph.
Fixed some doc comments, and updated the mouse-over algorithm.
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
f8097cc27d
Added msbuild props for package references
9 years ago
Steven Kirk
a56ca5f319
Ported IDispatcher from scenegraph branch.
9 years ago
Nikita Tsukanov
6754bda125
Switched back to using DependencyContext (we might even want to use it for net451 later)
9 years ago
Steven Kirk
04b35fef62
Removed unused field.
9 years ago