Andrey Kunchev
b5e290ceaf
fix build
9 years ago
Andrey Kunchev
841999e527
try fix portable.xaml submodule to checkout portable.xaml/develop branch
9 years ago
Steven Kirk
88b0342e3d
Fix GetVisualRoot logic
It was plain wrong.
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
Steven Kirk
8e6b6258ed
Fix re-enabling windows when dialog is closed.
9 years ago
Steven Kirk
42239d4498
Moved IDrawingContextImpl to Avalonia.Platform.
So it can be alongside its impl brethren.
9 years ago
Wiesław Šoltés
38bc75b5ab
Updated NuGet packages to fix package downgrades
9 years ago
Wiesław Šoltés
7146b91303
Removed unnecessary project.json
9 years ago
Andrey Kunchev
1f530c20f4
minor refactorings
9 years ago
Steven Kirk
a2fe941e2e
Added more comments on workaround.
9 years ago
Andrey Kunchev
fabc91bacd
Xaml parser handle in more generic way collection properties in avalonia
9 years ago
Andrey Kunchev
895cdb4b14
ensure style include is built from Markup extension
9 years ago
Andrey Kunchev
92ec7d4e3f
set wellknown extensions without completely replace original type
9 years ago
Andrey Kunchev
9090421a20
support of relative uri's for icons and bitmaps
9 years ago
Andrey Kunchev
3e23c0d05f
Get rid of AvaloniaXamlLoader.UriContext, now context is passed to Extensions and Type converters so it can be used
9 years ago
Steven Kirk
96d9cfa2fc
Use the default compile items in core libs.
Now we're using the new project system, we don't have to have a
`<Compile Include="..."/>` element for each file.
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