Steven Kirk
2dfaa07e75
Use correct range ctor.
And fix unit test that should've caught the mistake.
3 years ago
Steven Kirk
122b1a827f
Added additional test & fix.
3 years ago
Steven Kirk
e277e6e569
Added tests for AutomationTextRange.
3 years ago
Steven Kirk
79f5052907
Remove GetVisibleRanges from text provider.
It doesn't seem to return anything but `DocumentRange` in either WPF or QT so looks to be vestigial.
3 years ago
Steven Kirk
a8b14fd29c
Fix the 4rd hardest problem in computer science.
Off by one errors.
3 years ago
Steven Kirk
bd1cd71613
Clip text bounds to effective viewport.
Required moving effective viewport calculation outside of `LayoutManager` into an extension method.
3 years ago
Steven Kirk
15bce1f0f4
Initial implementation of ITextProvider.
With backend implementation in win32 (macOS to come).
3 years ago
Steven Kirk
531f059c76
Only call coerce callback a single time.
3 years ago
Benedikt Stebner
e69661b353
Rework MaxLines to limit how many lines are visible at once and don't prevent additional input if MaxLines is reached
3 years ago
affederaffe
de617de3d7
Don't create DBus Tray Icon when not connected
3 years ago
Steven Kirk
146ebd201d
Remove IPresenter and IContentPresenter.
3 years ago
Max Katz
52efb5dd8f
Fix merge build error
3 years ago
FitDev
b1769a0356
Move TryGetPlatformHandle to TopLevel Fix 3
3 years ago
Steven Kirk
a99839be1d
Remove unneeded protected properties.
3 years ago
Steven Kirk
afb5d65f68
Make ICompiledBindingPathElement internal.
3 years ago
Steven Kirk
11b44129d1
Make IRuntimeXamlLoader internal.
3 years ago
Steven Kirk
5836b202cc
Make parsers internal.
3 years ago
Steven Kirk
3b203225cd
Make DelayedBinding internal.
Is only used by `StaticResource` and a few unit tests. Can probably be removed.
3 years ago
Emmanuel Hansen
89be3ee533
Add more android keycode support
3 years ago
Steven Kirk
46488628dd
Move TemplateBinding to Avalonia.Base.
It would be useful to be able to access it from here to provide bindings in default template values, and it has no dependency on XAML.
3 years ago
Steven Kirk
c83e64d4d9
Fix spelling mistake.
3 years ago
Steven Kirk
29ba660e4b
Make BindingBase.GetParentDataContext private.
3 years ago
Steven Kirk
f1cde62c98
Make ConsoleContext internal.
3 years ago
Steven Kirk
79b043cbfa
Remove ExportAvaloniaModuleAttribute .
This feature is no longer supported.
3 years ago
Steven Kirk
38a77e2f69
Make IContentPresenterHost internal.
Can probably be removed?
3 years ago
Steven Kirk
4c194b47c2
Removed ContentPresenter.CreateChild.
Unused API and I'm not sure we want to expose an extension point here.
3 years ago
Steven Kirk
f6699faf4a
Make FreezeVisibilityChangeHandling internal.
3 years ago
Steven Kirk
e4634a917e
Make TopLevel.CreateLayoutManager internal.
Should only be needed for unit tests.
3 years ago
Steven Kirk
673b3e4b71
Make top level Handle* methods internal.
3 years ago
Steven Kirk
4ea25f7990
Make ToggleSwitch.UpdateKnobPos private.
3 years ago
Steven Kirk
2241873316
Make TextBox.RemoveInvalidCharacters private.
3 years ago
Steven Kirk
b0bcfcfbf7
Make TextBlock.SimpleTextSource private.
3 years ago
Steven Kirk
de0ebdda22
Don't expose fields.
3 years ago
Steven Kirk
16615a43d3
Don't expose pseudoclass constants.
1. They don't follow naming conventions
2. If we're going to expose them, why just `protected`?
3. If we do it, we should do it on all controls
3 years ago
Steven Kirk
61be135c8c
Don't expose protected fields.
3 years ago
Steven Kirk
d992fc2b4f
Hide IChildIndexProvider interface method.
3 years ago
Steven Kirk
da2af10efe
Make INativeMenuExporterEventsImplBridge a private API.
3 years ago
Steven Kirk
8428ea9d6b
Make IMainMenu and IAccessKeyHandler internal.
3 years ago
Steven Kirk
8f94a6505b
Make IMenu, IMenuElement, IMenuItem internal.
Should only be needed for unit tests.
3 years ago
Steven Kirk
6bbd56f7d9
Make IHeadered internal.
Can probably be removed.
3 years ago
Steven Kirk
d390b4796f
Make IContentControl internal.
Can probably be removed.
3 years ago
Steven Kirk
808ada86cd
Make ContentControl.ContentChanged private again.
Was added in #9803 for `TransitioningContentControl` but is no longer needed (and anyway it should be called `OnContentChanged` if we want to keep it).
3 years ago
Steven Kirk
1e5ef03eca
Make InvalidateMirrorTransform protected.
3 years ago
FitDev
c2ab39e6db
Move TryGetPlatformHandle to TopLevel Fix 2
3 years ago
FitDev
ee1ef13ff2
Move TryGetPlatformHandle to TopLevel Fix
3 years ago
FitDev
4d67f3230c
Move TryGetPlatformHandle to TopLevel
3 years ago
Steven Kirk
94b9c36e31
Focus first child from no focus.
If there is no currently focused element when tab navigation occurs, move the focus from the root.
Fixes #11290 .
3 years ago
Steven Kirk
65b3de6162
Use `IsEffectivelyEnabled` in automation peers.
Fixes #11370
3 years ago
Steven Kirk
fede3d6138
Fix IsScrollInertiaEnabled warning.
Fix the annoying warning:
```
Error in binding to 'Avalonia.Input.GestureRecognizers.ScrollGestureRecognizer'.'IsScrollInertiaEnabled': 'Null value in expression '{empty}' at '$self.TemplatedParent'
```
This is a bit of a hack; we take advantage of the fact that `IsScrollInertiaEnabled` is an attached property and set it on the `ScrollContentPresenter` where the other bound properties are located.
Fixes #11148
3 years ago
Steven Kirk
e78bd48a8e
Only select if pointer is released in bounds.
3 years ago