Javier Suárez
af0f61a02b
[Feature] Expand Page-type navigation: CarouselPage ( #20871 )
* Added CarouselPage
* Renamed DrawerBreakpointWidth to DrawerBreakpointLength
* More unit tests
* More tests
* Improve Carousel gestures
* Make SelectionChanged a RoutedEvent
* Change TabbedPage IsGestureEnabled to true for consistency
* Allow to clear CurrentPage
* Reuse Tab Icon Path (perf)
* Avoid duplicated ResolvePageAtIndex
* More tests
* A new showcase
* Improve CarouselPage Transitions sample
* More changes
* Expose IsNavigating
* A11y improvements
* Updated showcase samples
* More changes
* Fix vertical carousel page gestures
* More tests
* More changes in showcases
* More changes
* Refactor SwipeGestureRecognizer
* More changes
* More changes
* Added new CommandBar Events sample
* Avoid duplicated subscriptions in CommandBar
* Avoid invalid SelectedIndex values
* Avoid duplicated subscription
* Fix SwipeGestureRecognizer non needed allocation
* Added Easing to stack and modal navigation default transitions
* Preserve NavigationPage modal stack across visual tree detach/reattach
* More fixes and tests
* More changes
* Simplify icon logic
* More fixes, samples and tests
* Fixed tests
* Changes based on feedback
* Updated test
* Fixed tests
* Update API suppressions
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
6 days ago
Javier Suárez
4e1b90b061
[Feature] Add gestures and WrapSelection (loops) support to Carousel ( #20659 )
* Format Carousel sample UI
* Added WrapSelection property support
* Implement gestures
* Update sample adding custom page transitions
* More changes
* Added swipe velocity
* Optimize completion timer
* Verify gesture id
* Improve CrossFade animation
* Fix in swipe gesture getting direction
* More changes
* Fix mistake
* More protections
* Remove redundant ItemCount > 0 checks in OnKeyDown
* Renamed GestureId to Id in SwipeGestureEventArgs
* Remove size parameter from PageTransition Update method
* Changes based on feedback
* Update VirtualizingCarouselPanel.cs
* Refactor and complete swipe gesture (added more tests)
* Updated Avalonia.nupkg.xml
* Changes based on feedback
* Polish carousel snap-back animation
* Implement ViewportFractionProperty
* Fixed test
* Fix FillMode in Rotate3DTransition
* Updated comment
* Added vertical swipe tests
* More changes
* Fix interrupted carousel transition lifecycle
1 week ago
Javier Suárez
9a21a48aa4
[Feature] Add PipsPager Control ( #20660 )
* Added PipsPager control
* Added tests
* Added render tests
* Added samples
* More improvements
* More tests
* Added more samples
* Fix formatting
* Updated Automation
* Small optimization
* More changes
* Changes based on feedback
* Fix build errors
* More changes
* Updated samples
* Fixes
* More changes
* Fix build
* More changes
* More changes
* More tests
* More constants
2 weeks ago
Javier Suárez
7bc087c658
[Feature] Page-based navigation system ( #20794 )
* Added CommandBar
* Added ContentPage
* Added NavigationPage
* Added TabbedPage
* Added DrawerPage
* More showcases
* More tests
* Added Connected Animations
* More samples
* More fixes
* More fixes
* Updated samples
* More fixes
* Fix build errors
* More fixes
* More changes
* More changes
* More fixes
* Added benchmarks
* Updated SwipeGestureRecognizer
* Fixes based on PR feedback
* More fixes
* Removed Appearing/Disappearing events
* Fix merge issue
* More changes
* Fix build
* Remove TabbedPage brush properties
* New showcase sample
* More changes
* Moved navigation brushes properties to resources
* Fix default connected animation duration fallback
* CommandBar returns empty list with null
* Ignore AVP1030 on PrimaryCommands/SecondaryCommands for now
* Updated samples
* More changes and tests
* Updated samples
* Updated render tests
* Updated tests
* Added Page AutomationPeers
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
3 weeks ago
Nikita Tsukanov
30b451da52
Fix Border clip regression ( #20648 )
1 month ago
Javier Suárez
424863d5ff
Add PlaceholderForeground property to TextBox, AutoCompleteBox, CalendarDatePicker, NumericUpDown ( #20303 )
* Added WatermarkForeground property
* Added samples
* Added unit tests
* Added render tests
* Fix merge issues
* Updated render tests
* Standardize watermark foreground naming
* Pending changes
* More changes
* Use UseFloatingPlaceholder
* Fix tests
2 months ago
Benedikt Stebner
1bce702bd4
Introduce TextOptions ( #20107 )
* Introduce TextOptions API
* Store BaselinePixelAlignment as byte. Move to a dedicated file.
* Update API suppressions
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
2 months ago
snowflysky
c7bc7e92a5
Enable antialiasing based on EdgeMode in DrawBitmap ( #20116 )
* Enable antialiasing based on EdgeMode in DrawBitmap
* Update expected image for ImageBrush Tile UniformToFill test
* Add tests for rotated image with EdgeMode options
* Add expected images for Direct2D1 image rotation tests
* Revert "Add expected images for Direct2D1 image rotation tests"
This reverts commit 63dd6717b0 .
* Remove Direct2D1 in ImageTests
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
4 months ago
Alexandre Mutel
46d4735868
Fix issue with OverhangLeading ( #18438 )
* Fix issue with MinTextWidth (Fixes #18372 )
* Make sure that MeasureOverride for TextPresenter and TextBlock are using same textWidth
* Revert #16601 that is introducing an invalid calculation for the OverhangLeading
Add tests for OverhangLeading and OverhangTrailing
* Revert MinTextWidth
* Fix tests to not rely on fixed values
* Fix remaining issues
* Fix comment in Direct2D1 GlyphRunImpl.cs
* Fix Direct2D1 rendering
* Fix gold images
* Restore TextLineImpl
* Update gold image
* Restore Math.Max on OverhangLeading and Trailing
* Adopt similar behavior to WPF: don't use OverhangLeading/Trailing for measuring and remove clip by default.
But it requires further support with NeedsClipBounds
* Remove MinTextWidth
Keep ClipToBounds=true default for TextBlock
* Revert change
---------
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
12 months ago
Leo Bottaro
9441362dcc
Add missing Blend Modes and expose BlendMode on Image Control ( #17903 )
* Add missing Bitmap Blend Modes supported by Skia
* Expose Blend Mode on Image Control
* Fix image render options "push" not being disposed
Fix image blendMode change not triggering a re-render
* Add Image Blend Tests
* Remove Modulate Blend mode
* Add Composition Blend Modes Tests
---------
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
1 year ago
Benedikt Stebner
d411bd2156
Fix TextBlock TextAlignment issues when a HorizontalAlignment is defined ( #17402 )
* Always measure TextBlock with infinite width
* Make sure the constraint is always fulfilled
* Add some tests
* Adjust tests because we no longer retain the TextLayout in the arrange pass
1 year ago
Benedikt Stebner
e55dfcd1a2
Fixes ShapedTextRun background rendering ( #16594 )
* Add failing test
* Fix ShapedTextRun background rendering
2 years ago
Benedikt Stebner
b94b011c94
[WIP]Fix overhang leading calculation for negative values ( #13672 )
* [macOS] Fix overhand leading calculation
* Adjust TextLineMetrics
* Update expected result
2 years ago
Benedikt Stebner
520d9d631a
Properly handle overhang with RTL FlowDirection ( #13631 )
2 years ago
Benedikt Stebner
da3d4ca5c2
Fix TextLayout.OverhandLeading calculation ( #13287 )
* Fix overhand leading calculation
* Fix test on Mac
* Fix tests
2 years ago
Benedikt Stebner
f153c626f8
Fix TextLineImpl.GetCharacterHitFromDistance for lines that include a TextEndOfLine run
Fix overhang handling to prevent clipped text for slanted glyphs
Fix TextBox selection issues
3 years ago
Nikita Tsukanov
95b6343f8f
Respect AdornerLayer.IsClipEnabled
3 years ago
Benedikt Stebner
b0a2ae99e4
Fix default GlyphRun.BaselineOrigin
Add a unit test
3 years ago
Nikita Tsukanov
5a3d9f1574
Use parent clip rect of the adorned visual
3 years ago
Benedikt Stebner
173f5e1b6e
Update test file
3 years ago
Steven Kirk
b2556d62f5
Fix some layout rounding issues.
Fixes for #8092 :
- Always round sizes up, not to the nearest pixel, thereby ensuring that `DesiredSize`s don't get rounded down where possible.
- Apply rounding to `Padding` and `BorderThickness` in measure pass as well as arrange pass, to ensure that `DesiredSize` takes this rounding into account.
4 years ago
Benedikt Stebner
bdadb6a351
Fix GetTextBounds for mixed runs
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
ce60f607cf
Added failing tests for #6359 .
4 years ago
Wiesław Šoltés
5b9f06865e
Update expected test files
5 years ago
Andrey Kunchev
21fadbedd6
add tests for text issue:4866
6 years ago
Steven Kirk
253ff56895
Added a couple of Border CornerRadius render tests.
8 years ago
Steven Kirk
589b76e9cd
Moved render tests for each platform to their own directory.
The test .cs files stay in the `Avalonia.RenderTests` directory but the D2D and Skia render test .csprojs are moved to their own directory: include the test files by using a glob in the .csproj.
This avoids the hack we were having to do to get `BaseIntermediateOutputPath` to work - we no longer have this problem as now each .csproj has its own directory, it can use the default directory for intermediate files.
8 years ago
Steven Kirk
fb25645aed
Fixed expected skia output.
9 years ago
Steven Kirk
27ec199a3d
Added failing custom render tests.
Deferred rendering does not yet support geometry clipping or opacity masks from `Visual.Render`.
9 years ago
Steven Kirk
d6342e906a
Adjusted expected test output.
The output images were off-center.
9 years ago
Steven Kirk
7e1efb33e2
Added failing render test.
Deferred rendering does not yet support clipping in `Visual.Render`.
9 years ago
Steven Kirk
3ce2479489
Implemented deferred opacity drawing.
9 years ago
Nikita Tsukanov
d820dc1068
Added unit tests for skia backend
11 years ago