Steven Kirk
d92fb0189f
Added IImageBrush and IVisualBrush
And make an immutable `SceneImageBrush` and `SceneVisualBrush` which
clone the mutable `ImageBrush` and `VisualBrush` for use in the scene
graph, as we shouldn't be accessing mutable state from the render
thread.
9 years ago
Steven Kirk
b3f9a8464e
Run deferred render tests on a background thread.
Run deferred render tests on a background thread to expose any threading
errors in the deferred rendering path. And threading errors found. Also
had to decrease the timeout for D2D render tests as
`renderTarget.EndDraw` is hanging when an exception is thrown between
`renderTarget.BeginDraw` and `EndDraw`.
9 years ago
Steven Kirk
051be916e4
WIP: Draw visual brush from DeferredRenderer.
It's not drawing the correct thing though, as we need to create a new
scene for the visual brush visual.
9 years ago
Steven Kirk
6f07978361
Updated test output.
ImageMagick couldn't tell that the deferred renderer was failing the
test previously!!?!?
9 years ago
Steven Kirk
5261ab303f
WIP: More work on VisualBrush
Laying the foundations for getting `VisualBrush` working with
`DeferredRenderer`.
9 years ago
Steven Kirk
24635ea218
Added in-tree visual brush test.
Expected output is slightly wonky - need to investigate that once
stuff's working in general.
9 years ago
Steven Kirk
40c5337de7
Don't throw here.
It makes Direct2D hang for some reason.
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
e79a144c14
WIP: Working on getting VisualBrush working
Don't try to render `VisualBrush`es in TileBrushImpl - visual brushes
need first to be transformed into images and then rendered as an
`ImageBrush`. To this end, renamed `TileBrushImpl` as `ImageBrushImpl`
(in D2D backend only for now as that's what I'll get working first).
Actual visual brush implementation not yet done.
9 years ago
Steven Kirk
63f5dfb319
Added ncrunch 3 solution.
9 years ago
Steven Kirk
558f98f5bf
Remove refrences to "scene graph" in Visual.
As its now a separate thing.
9 years ago
Steven Kirk
7ce58c92aa
Merge branch 'master' into scenegraph
Conflicts:
src/Windows/Avalonia.Direct2D1/Direct2D1Platform.cs
src/Windows/Avalonia.Direct2D1/HwndRenderTarget.cs
src/Windows/Avalonia.Direct2D1/Media/DrawingContextImpl.cs
src/Windows/Avalonia.Direct2D1/Media/Imaging/BitmapImpl.cs
src/Windows/Avalonia.Direct2D1/RenderTarget.cs
9 years ago
Steven Kirk
089b505e01
Merge pull request #858 from AvaloniaUI/fixes/849-virt-horiz-scroll
Fix horizontal scroll with virtualized items.
9 years ago
Steven Kirk
d9c759a254
Merge branch 'master' into fixes/849-virt-horiz-scroll
9 years ago
Steven Kirk
5f4670b204
Merge pull request #859 from jkoritzinsky/D2DBitmap-NoWic-Path
Create a Bitmap for the Direct2D Backend without having to write-out to WIC
9 years ago
Jeremy Koritzinsky
a51aedce44
Merge branch 'master' into D2DBitmap-NoWic-Path
10 years ago
Jeremy Koritzinsky
1fd692f262
Change implementation to be via different classes so as to not break invariants and pixel measurements.
10 years ago
Steven Kirk
b25a4d0fc0
Merge branch 'master' into fixes/849-virt-horiz-scroll
10 years ago
Steven Kirk
240bc4d2ca
Fix horizontal scroll with virtualized items.
Fixes #849
10 years ago
Steven Kirk
1b8ac202ce
Merge pull request #852 from jkoritzinsky/Fix-Intermittent-Leak-Test-Crash
Fixes intermittent test failures on AppVeyor when running Leak Tests.
10 years ago
Steven Kirk
f1e088c9fe
Merge branch 'master' into Fix-Intermittent-Leak-Test-Crash
10 years ago
Steven Kirk
b083899720
Merge pull request #851 from jkoritzinsky/WindowIcon-MatchPattern
Update icon save implementation and added test case to control catalog
10 years ago
Steven Kirk
e7e282ddae
Merge branch 'master' into Fix-Intermittent-Leak-Test-Crash
10 years ago
Steven Kirk
a19b33af30
Merge branch 'master' into WindowIcon-MatchPattern
10 years ago
Steven Kirk
66d12e334f
Merge pull request #850 from jkoritzinsky/SwapChain
Change Direct2D Backend to render to a DXGI Swap Chain
10 years ago
Jeremy Koritzinsky
17a43dacfa
Make it possible to construct a Direct2D BitmapImpl from a ID2D1Bitmap directly, instead of only via WIC imaging factories.
10 years ago
Jeremy Koritzinsky
d73350e0fd
Fixes intermittent test failures on AppVeyor when running Leak Tests.
10 years ago
Steven Kirk
7c5c889494
Fix RenderLayer resize.
10 years ago
Jeremy Koritzinsky
619e64ef1d
Remove DirectX 12 feature level choices. Device will be created with feature levels up to DirectX 11.1 (Windows 8), which is all we use.
10 years ago
Steven Kirk
f9f658c89f
Handle null event source.
10 years ago
Steven Kirk
6bc683a2e8
Don't call Paint for now on Win32.
It's causing stuff to crash. We will probably want to do this later to
make resizing look better though.
10 years ago
Jeremy Koritzinsky
9d73868da7
Remove the VideoSupport flag because AppVeyor machines do not support it.
10 years ago
Jeremy Koritzinsky
e2ba8fb5bb
Make video support creation flag only be set when running on Windows 8 or newer (Direct3D11.1 or newer).
10 years ago
Jeremy Koritzinsky
1a96efa8af
Update implementation and added test case to control catalog. Fixes #807 .
10 years ago
Jeremy Koritzinsky
d02b7cbe92
Create D2D1 device with a factory.
10 years ago
Jeremy Koritzinsky
4575c1abc9
Updated Resharper naming rules to match our conventions.
10 years ago
Jeremy Koritzinsky
bde461f400
Use the factory associated with the Direct2D1 device.
10 years ago
Jeremy Koritzinsky
cc4c3d02d0
Fixed DPI issues.
10 years ago
Jeremy Koritzinsky
f44468a3ab
Added swap chain backed render target.
10 years ago
Jeremy Koritzinsky
34d779df45
Updated gitignore to remove vs2017 specific files.
10 years ago
Steven Kirk
4ce2e09ef3
Use widened bounds for GeometryNode.Bounds.
10 years ago
Steven Kirk
99c1df0da0
Remove Rect.operator*
It was wrong - use Rect.TransformToAABB instead.
10 years ago
Steven Kirk
0e1877cc21
Merge pull request #843 from AvaloniaUI/fixes/829-findcontrol-returns-null-for-usercontrol
Register namescoped controls with parent namescope.
10 years ago
Steven Kirk
331fa3ac1a
Merge branch 'master' into fixes/829-findcontrol-returns-null-for-usercontrol
10 years ago
Steven Kirk
7b46305edb
Merge pull request #848 from AvaloniaUI/features/relativesource-self
Added RelativeSource=Self binding mode.
10 years ago
Steven Kirk
eb595198c6
Merge branch 'master' into features/relativesource-self
10 years ago
Steven Kirk
48a33cc415
Handle null in MarkupBindingChainException
10 years ago
Steven Kirk
7d6503a5f7
Added RelativeSource=Self XAML tests.
10 years ago
Steven Kirk
8f21388e28
Added RelativeSource=Self binding mode.
10 years ago
Steven Kirk
6e138b0117
Merge pull request #844 from AvaloniaUI/fixes/836-textbox-caret
Don't show TextBox caret when control not focused.
10 years ago