Dariusz Komosiński
2362b5a847
Cleanup KeyGesture code. Add constructor taking non-deprecated arguments.
7 years ago
Nikita Tsukanov
0bad390dac
Added PointerUpdateKind and replaced InputModifiers with KeyModifiers
7 years ago
Steven Kirk
d0a6f48015
Added `Gestures.RightTapped`.
7 years ago
Steven Kirk
5e2b3c56e6
Update tests for #2730 .
7 years ago
Steven Kirk
2c9114d2a2
Moved gesture tests to Avalonia.Input.
As `Gestures` is defined here, not in Avalonia.Interactivity.
7 years ago
Nikita Tsukanov
551ce9b058
Fixed capture transfer for removed controls
7 years ago
Nikita Tsukanov
4c1f42b48a
PR comments
7 years ago
Steven Kirk
38d68865fd
Correctly handle command.CanExecute state.
Added a new `IsEnabledCore` property to `InputElement` which is overridden in `Button` and `MenuItem` to override the `IsEffectivelyEnabled` state with the enabled state of the command.
Also add data validation of the `Command` property to `MenuItem` to make it behave the same as `Button` when `Command` is bound to a non-existent property.
Fixes #2501
7 years ago
Steven Kirk
82b3bbcc6b
Added failing test for #1558 .
7 years ago
Nikita Tsukanov
feadefc1a1
Run Mono/FullNET tests for all "core" libs except Avalonia.Controls
7 years ago
Steven Kirk
2584f4bb18
Removed directional navigation code.
8 years ago
Steven Kirk
895a24fb9e
Raise pointer enter/leave events in correct order.
Previously, enter events were raised before leave events.
8 years ago
Steven Kirk
3f0c7650e5
Make sure IsPointerOver is correctly set.
Reset the handled state for `PointerEnter`/`PointerLeave` on each control invocation, and don't allow the user to skip setting `IsPointerOver`
8 years ago
Steven Kirk
3891cbf06d
Fixed spelling.
8 years ago
sdoroff
7969749cd1
Added a unit test
8 years ago
Steven Kirk
30e78dc5b6
Only run unit tests on .net core.
This allows us to run them on linux.
8 years ago
Jeremy Koritzinsky
eb7c010462
Retarget .Net Framework projects to 4.7
Works around dotnet/standard#567 .
8 years ago
Jeremy Koritzinsky
b463d04e9f
Make KeyGestures with +,-,. in them match with both the non-numpad keys and the matching numpad keys.
Fixes #225
8 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
8 years ago
Steven Kirk
880cf657ec
Accept root in IRenderer.HitTest.
Fixes #1221 .
9 years ago
Steven Kirk
763775fa82
Clear mouse capture when control removed.
When a captured control is removed from the visual tree, clear the mouse capture.
Note that our capture logic needs to be improved - it shouldn't be possible to capture a non-visible or non-enabled control. This doesn't address that but it does fix the crash in #1203 .
Fixes #1203
9 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Steven Kirk
5827f3c284
Missed file from merge
9 years ago
Steven Kirk
3b030f19d1
Fix Avalonia.Input.UnitTests.csproj
Previously this project was spewing loads of
```
Severity Code Description Project File Line Suppression State
Warning CS1701 Assuming assembly reference 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'Avalonia.Controls' matches identity 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Runtime', you may need to supply runtime policy Avalonia.Input.UnitTests(net461) D:\projects\Avalonia\tests\Avalonia.Input.UnitTests\CSC 1 Active`
```
Warnings. Not sure why this was, but updating the `csproj` to be in the same format as the other unit tests stops these warnings and reduces the warnings for a solution build from 5755(!) to 238.
9 years ago
Jeremy Koritzinsky
58b3ff90ab
Reduce build warnings by setting a few flags and not using deprecated overloads.
9 years ago
Steven Kirk
d2eca3968b
Removed IRendererFactory.
Make the `ITopLevelImpl` create the renderer instead.
9 years ago
Steven Kirk
2edcdb8656
MouseDevice now exposed on TopLevel.
9 years ago
Steven Kirk
c4aa2197b2
Fixed TreeView navigation.
Fixes #277 .
9 years ago
Wiesław Šoltés
872575b9b7
Set project OutputType
9 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
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
19f0f1d407
Removed unused files
9 years ago
Wiesław Šoltés
8601a3e71e
Converted Avalonia.Input.UnitTests to a new project system
9 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
9 years ago
Nikita Tsukanov
25c7be5b7a
Removed packages.config from csproj.files
9 years ago
Nikita Tsukanov
dc8a32d1b1
Run Avalonia.Base.UnitTests using `dotnet test`
9 years ago
Nikita Tsukanov
485fe1364e
Everything is buildable via MSBuild
9 years ago
Nikita Tsukanov
b6b5b9de88
Test now compile and can be run from visual studio
9 years ago
Nikita Tsukanov
b0a063838f
Migrated to PackageReference
9 years ago
Steven Kirk
71c6c572ac
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
9 years ago
Steven Kirk
6036bd5998
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
9 years ago
Nikita Tsukanov
90a4915549
Implemented WritableBitmap
9 years ago
Nikita Tsukanov
7013033a1b
Added `Bitmap(PixelFormat format, IntPtr data, int width, int height, int stride)` constructor
9 years ago
Nikita Tsukanov
374d600275
Added support for multiple drawing methods for window implementations. Added framebuffer support
9 years ago
Steven Kirk
349ba78931
Fixed pointerover state.
And added a test for it.
10 years ago
Steven Kirk
d91d1829ac
Initial implementation of scenegraph hit testing.
Based solely on control bounds as before.
10 years ago
Steven Kirk
59c49d259d
Renamed assembly SceneGraph -> Visuals.
To make way for low-level scene graph library.
10 years ago
Steven Kirk
e54ac6b5bf
Fixed name of method.
It's creating a render target, not a renderer.
10 years ago
Steven Kirk
61393d8b22
Removed some more unused variables.
10 years ago
Wiesław Šoltés
9cdcf6cb02
Revert "Updated projects and packages"
This reverts commit 7cca79b435 .
10 years ago