Giuseppe Lippolis
2aa79269e8
fix: Address reviw
3 years ago
Steven Kirk
8347093f90
Removed IInteractive.
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Giuseppe Lippolis
9e1ff3e3be
fix: Addreaa review
3 years ago
Steven Kirk
fb0da85ad3
Merge core libraries. ( #5831 )
* Merge core libraries.
Everything below `Avalonia.Controls` into `Avalonia.Base`.
* Move new files to correct place.
* Removed unused dirs/projects,
* Removed outdated references from theme assemblies.
* Merge unit tests to match new assembly layout.
* Fixup test namespaces.
* Make directory match namespace.
* Move files to match namespace.
* Move files to match namespace.
* Fix up incorrect namespace.
`Avalonia.Visuals.Media.Imaging` -> `Avalonia.Media.Imaging`.
* Fix resource URL.
* Removed outdated dependencies.
* Added missing project reference.
* Update test namespaces.
* Fix merge error.
* Fix merge errors.
* Fix bad merge in WindowsInteropTest.csproj.
* Fix up merge errors in csprojs.
* Remove merged tests from nuke.
* Fix up namespace.
* Fix compile error.
* Fix failing tests.
Now that more unit tests are present in Avalonia.Base.UnitTests, general `AvaloniaObject` properties are getting registered. Ignore those.
Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
4 years ago
Steven Kirk
76667dbd0d
Finished adding nullable annotations to Avalonia.Base.
4 years ago
Steven Kirk
4285c3d0d1
Don't create a copy of the array unless necessary.
5 years ago
Max Katz
3984ba2ec5
Enable nullability for InputElement, Interactive, Visual
5 years ago
Steven Kirk
2a44d8b564
Initial implementation of UI automation.
Follows WPF/UWP API as closely as possible. Limited to win32 right now. Broken in many places.
5 years ago
Nikita Tsukanov
35b365d97d
Implemented basic IME support for Linux
5 years ago
Fusion86
3304d646c0
Fix crash when KeyBindings change while they are being handled
5 years ago
Dan Walmsley
d36b7a40df
ensure focus-within is removed when focus moves to a different root.
5 years ago
Steven Kirk
7354ba337a
Use as instead of cast.
In case someone's doing something funky, fail gracefully.
5 years ago
Dan Walmsley
2baae49a12
fix nullable reference type warnings.
5 years ago
Dan Walmsley
8e2d555239
focus within copes with detach from tree.
5 years ago
Dan Walmsley
7cae6af637
less casting.
5 years ago
Dan Walmsley
98c2b0f9e0
Initial implementation of IsKeyboardFocusWithin
5 years ago
Steven Kirk
a42e8cbded
Nullable enable Avalonia.Input.
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
José Pedro
2cb3b5f916
Updated obsolete API usages in interfaces.
6 years ago
Steven Kirk
fb173b30e2
Send keypresses to toplevel if no focused control.
- Added `IInputRoot Root` property to `RawInputEventArgs`
- Removed `InputRoot` and `Root` properties from `RawDragEvent` and `RawPointerEvent` as its now in the base class
- `InputRoot` in `RawDragEvent` was incorrectly using the type `IInputElement` instead of `IInputRoot`, fix callers that were using the wrong type
- Pass the input root to all raw input event constructors
- If no control is focused in `KeyboardDevice.ProcessRawEvent` then raise the event on the root
7 years ago
Nikita Tsukanov
3d4a2781b0
Switched key events to use KeyModifiers
7 years ago
Miha Markič
0a38876590
Spellchecks all projects except for Base, Controls, Samples and Testing
8 years ago
sdoroff
28c78d3fc9
Moved the setting of FocusedElement
This allows the LostFocus event to check the newly focused element
8 years ago
sdoroff
c5608bd386
Moved the setting of FocusedElement
This allows the LostFocus event to check the newly focused element
8 years ago
Jurjen Biewenga
0590465a0a
Reverted keyboard device
9 years ago
Jurjen Biewenga
10551b7b31
Added array to filter out specific chars from the input text
Added '' to the invalid chars array
9 years ago
Nikita Tsukanov
91691c30a7
PR notes
9 years ago
Nikita Tsukanov
21da2df1ec
Call ProcessRawEvent directly from the input manager
9 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
015054a8fd
Added a pre-process hook to InputManager,
And some documentation.
10 years ago
Steven Kirk
338b71b204
Moved IVisual to Perspex.VisualTree.
10 years ago
Steven Kirk
9191234f54
Fix keyboard handling.
Allows Alt+F4 to work.
10 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
10 years ago
Nikita Tsukanov
85b530e363
New ios backend
10 years ago
Steven Kirk
ddb5ed229a
Make keyboard range selection work.
11 years ago
Nikita Tsukanov
5acef971f0
Added KeyGesture and KeyBindings
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Nikita Tsukanov
21a3554260
Change property getter to expression properties
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Nikita Tsukanov
f0e154ac90
ModifierKeys are now stored inside events
Ceterum censeo StyleCopum esse delendum
11 years ago
Nikita Tsukanov
70dcfd652a
Now using TextInput event, WM_CHAR and GtkIMContext
11 years ago
Steven Kirk
c5020d38ee
Remove RoutedEventArgs.OriginalSource.
Still not entirely sure what it's purpose is in WPF.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
d161428f52
Pass navigation method in GotFocus event.
And only focus selectable items when focus comes from the pointer, or
directional keys.
11 years ago
Steven Kirk
5c5cfc641e
Add focused control to devtools.
11 years ago
Steven Kirk
3ac8bdcf37
Added KeyUp event.
11 years ago
Steven Kirk
d6b771bcea
Don't re-focus already focused control.
This actually fixes the TextBox selection problem.
11 years ago