Nikita Tsukanov
fa17c22131
Introduce PresentationSource, move some responsibilities from TopLevel ( #20624 )
* Extracted IInputRoot out of TopLevel
* Move some input handling out of TopLevel
* Remove old class, make layout manager private
* Removed IRenderRoot
* Make VisualTreeAttachmentEventArgs a bit more sensible
* Move ILayoutRoot to PresentationSource
# Conflicts:
# tests/Avalonia.Controls.UnitTests/TabControlTests.cs
* Updated some VisualRoot / GetVisualRoot usages
* Updated more XxxRoot usages
* More Root usages
* Addressed review
* Hurr-durr xml
* More fixes
* Maybe fix android compilation
* API diff
* Yet another cast
* I had to use MSIL analysis to detect those casts
* Fixed automation
* Fix PointerOverPreProcessor
* Fix?
* Removed yet another cast to Visual
* The amount of random downcasts is astonishing
* Maybe fix mac
* Addressed review
1 month ago
Julien Lebosquain
2185ce04e7
Use KeySymbol for AccessKey ( #20662 )
* Change AccessText.AccessKey to a string
* Use KeySymbol for AccessKey
* Update API suppressions
* Fix tests
1 month ago
Lehonti Ramos
69f4a304a2
In `Avalonia.Controls`, modernized `get`ter/`set`ter syntax ( #13021 )
Co-authored-by: Lehonti Ramos <lehonti@ramos>
3 years ago
Bill Henning
28cfe178b0
Fix for AccessText underlines being very blurry since they didn't align to pixels.
3 years ago
Steven Kirk
8428ea9d6b
Make IMainMenu and IAccessKeyHandler internal.
3 years ago
Steven Kirk
d2ac14a2ce
Make some protected internal members internal.
3 years ago
Tako
23d999c2eb
Make all Render overrides sealed ( #10299 )
3 years ago
Max Katz
59d7874b1d
Replace System.Reactive with internal extensions
3 years ago
Benedikt Stebner
90e0dcc9e3
Add Copy geasture
4 years ago
Benedikt Stebner
1db3296611
Fix TextBlock/TextPresenter measure/arrange
Fix TextTrimming for small width
Fix text splitting
Fix text editing shortcuts
4 years ago
Steven Kirk
cccbbc44c5
Clarify the return value of `StripAccessKey`.
4 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
Steven Kirk
b663afe06b
Make sure underline is drawn within bounds.
4 years ago
Steven Kirk
11c60b4294
Decouple automation peers from platform nodes.
Now peers are entirely unaware of the platform implementation.
5 years ago
Steven Kirk
7bb26473d1
Fix AccessText after merge.
5 years ago
Benedikt Schroeder
08a72e893c
Increase TextFormatter compatibility with WPF's version
5 years ago
Steven Kirk
06ed896317
Added access/accelerator key support.
And start adding integration tests for menu items.
5 years ago
Benedikt Schroeder
c2fad766e5
Rework GlyphRun BaselineOrigin
6 years ago
Benedikt Schroeder
bc9926014f
Fix typeface fallback for embedded fonts
Fix text wrapping for multiple corner cases
6 years ago
Benedikt Schroeder
2a181d9acb
Introduce TextRunProperties
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
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
6 years ago
Steven Kirk
2bf2e60ae0
Don't add extra pixel to AccessText measurement.
It's not needed; the underscore can be drawn in the descender space.
6 years ago
Steven Kirk
fad2e317ba
Make AffectsMeasure/Arrange/Render typed.
8 years ago
Steven Kirk
cb39aa0426
Fixed doc comments.
8 years ago
Dan Walmsley
515e180cdb
update documentation for CreateFormattedText method.
8 years ago
Dan Walmsley
58daa9390b
Allow CreateFormattedText to have the string it renders overridden.
8 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
Steven Kirk
376535b198
Make IFormattedTextImpl immutable.
Previously `IFormattedTextImpl` had `SetForegroundBrush` which set
mutable state. Make `FormattedText` fully mutable (before it was kinda
mutable, kinda immutable) and create immutable `IFormattedTextImpl`s on
demand.
9 years ago
Steven Kirk
584cdbb133
Make FormattedTextImpl immutable.
Because it needs to be shared between the UI thread and the render
thread. This also required making it non-disposable like the other
graphics primitive impls.
9 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
10 years ago
Steven Kirk
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
Nikita Tsukanov
3fc62506df
Introduced DrawingContext class responsible for matrix transformation and push/pop order validation
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
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
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
4e443c87bd
More porting docs etc from ideas branch.
11 years ago
Steven Kirk
576ee1500d
Added access key support to AccessKeyHandler.
11 years ago
Steven Kirk
face85f0de
Added AccessText.AccessKey.
11 years ago
Steven Kirk
e085e56c70
Show access keys on Alt/F10.
11 years ago
Steven Kirk
e04e5cc632
Added ShowAccessKey property to AccessText.
11 years ago
Steven Kirk
c65c9fb7c6
Show access keys in menus.
Currently always shown, whether user pressed alt/f10 or not.
11 years ago