José Pedro
ef15b80b12
Updated GotFocusEventArgs obsolete API usages.
6 years ago
Jumar Macato
7e42523008
Additional sanity checks for monitor resolution
6 years ago
Dan Walmsley
32df775398
Add hack to prevent renderer crashing on 0x0 window x11.
6 years ago
Dan Walmsley
1f1d3a8e35
prevent crashing in finalizer
6 years ago
Dan Walmsley
9fc7842eef
Revert "X11 backend wont crash with 0 sized window."
This reverts commit d49109877c .
6 years ago
Dan Walmsley
d49109877c
X11 backend wont crash with 0 sized window.
6 years ago
Dan Walmsley
f56a891a0f
prevent possibility of double cancellation of main loop.
6 years ago
Dan Walmsley
9df55b02d4
Use loopcancellation instead of adding a seperate api.
6 years ago
Dan Walmsley
c3fb152597
Working exception dispatch
6 years ago
Dan Walmsley
69c0521c5e
Add methods for dispatching exceptions on osx.
6 years ago
Dan Walmsley
c35755857c
basic implementation of exception dispatch on avalonia.native.
6 years ago
Rustam Sayfutdinov
694585ce68
Fix typo in the doc for Color properties
6 years ago
Dariusz Komosiński
a238fd33f0
Unify SelectingItemsControl init handling and add extra checks to ensure correctness.
6 years ago
Steven Kirk
ef42e9350d
Add doc comment for NonVirtualizingLayoutContext.
6 years ago
Steven Kirk
155915134e
Use correct context type.
6 years ago
José Pedro
dcab86a12e
Fixed drag and drop obsolete API usage.
6 years ago
Dariusz Komosinski
b400b45e0a
Use expression bodied events and properties.
6 years ago
Dariusz Komosinski
35f26081c6
Implement events for ToggleButton.
6 years ago
Steven Kirk
c6e6ad5678
Fix bug with UniformGridLayout MaximumRowsOrColumns and requested size
Ported from 007ab33a66
6 years ago
Steven Kirk
0236ced64f
Fix ItemsRepeater overwriting DataContext
Ported from 0e24e05dbd
6 years ago
Steven Kirk
bb7276d568
Extend the fix for Recycling the focused element to non virtualized l…
…ayouts
* Ensure that we set the m_processingItesmSourceChange flag for non-virtualizing layouts as well as virtualizing ones.
Ported from cc335ac391
6 years ago
Steven Kirk
09297dbb08
Fix repeater holding onto elements
If a consumer changes the ItemsSource with a non recycling layout then the items from the old source would be perpetually held by repeater, a potentially substantial leak.
Ported from e158eec3e9
6 years ago
Steven Kirk
1f46076f16
Use NonVirtualizingLayoutContext.
- Add and use `NonVirtualizingLayoutContext` in `NonVirtualizingLayout`
- Return -1 instead of throwing if element is not a child of `ItemsRepeater`
Ported from 22adf4dc62
6 years ago
Steven Kirk
261e477522
ItemsRepeater fix.
* Remove item from repeater children if there is no itemtemplate when being recycled.
Ported from c4d4d9995a
6 years ago
Steven Kirk
55275e09de
Fix stack layout arrange when items use stretch and final size is mor…
…e than desired size.
Ported from f37ebd5bb2
6 years ago
Steven Kirk
36fdb8e534
Add a MaximumRowsOrColumns to Uniformgridlayout
* Add a MaximumRowsOrColumns property to UniformGridLayout
* Fix nit
* Fix bugs
Ported from 6bd03c98f7 ?w=1
6 years ago
Steven Kirk
4cca4f0e4c
update to repeater to allow passing in uielements in itemssource
* minor update to repeater to allow passing in uielements in itemssource
* minor fixes
Ported from 95d5ff0076
6 years ago
Yahia Chiheb
d50f33e912
Fix typo
6 years ago
José Pedro
11b1ec2ded
Fixed PlatformHotkeyConfiguration obsolete API usage.
6 years ago
Steven Kirk
580697b25d
Make DrawingPresenter obsolete.
6 years ago
Steven Kirk
de31680253
Make D2D backend match Skia.
Skia doesn't support getting DPI from loaded bitmaps and always returns 96. Do the same in D2D.
6 years ago
Steven Kirk
37d00781cb
Invalidate DrawingImage when Drawing changed.
And add some XML docs.
6 years ago
Steven Kirk
dbe4301d36
Sanitize image drawing API.
- Remove opacity parameter - should push an opacity instead
- Add a WPF-compatible overload of `DrawImage` to `DrawingContext`
6 years ago
Andrey Kunchev
c64cc71c6c
fix fontfallback for font with some styles like bold/italic etc.
6 years ago
Steven Kirk
fd08fdc820
Update ControlCatalog image page.
To display `DrawingImage`.
6 years ago
Steven Kirk
6bd9ca8fa3
Initial implementation of DrawingImage.
6 years ago
Steven Kirk
a8e75384b7
Added IImage interface.
`IImage` represents a base interface for raster and vector images. `IBitmap` now implements this interface and `DrawingContext` accepts this interface in `DrawImage`.
The interface defines a `Draw` method which introduces a level of indirection for drawing the image through the image itself.
Renamed `IDrawingContextImpl.DrawImage` to `DrawBitmap` as this only handles drawing bitmap images. `Bitmap` now calls this method directly on the platform implementation.
6 years ago
Steven Kirk
4d8266df9c
Port Image sizing algorithm from WPF.
Fixes #3371
Fixes #2380
6 years ago
Steven Kirk
062ec0ccb6
Added Image.StretchDirection.
But not yet implemented.
6 years ago
Steven Kirk
4c2b77fdb6
Snapshot undo text after paste.
Fixes #2732
6 years ago
Pieter-Jan Briers
fc5ada5e23
Use invariant culture.
6 years ago
Pieter-Jan Briers
fb1dcc11b4
Fix loading EGL functions on GLX.
This fixes apps refusing to run on Arch Linux.
6 years ago
José Pedro
6fabfdc561
Fixed BindingExtension.TargetNullValue default value.
6 years ago
Andrey Kunchev
3439a371d9
sync custom hittesting also to overlaylayer
6 years ago
Andrey Kunchev
fc44379173
fix immediaterenderer custom hittesting for WindowNotificationManager fixes #3356
6 years ago
Andrey Kunchev
36dd50e645
fix immediate rendering hit testing for AdornerLayer
6 years ago
Dan Walmsley
69b7bc2041
[Popup] Use anchor and gravity to get the correct positioning under the mouse.
6 years ago
Dan Walmsley
a29404c3f7
[Popup] opens under mouse as 0.8 release did. Prevents rapid opening and closing.
6 years ago
Luis v.d.Eltz
b1e9c02828
Adding TargetNullValue to BindingExtension
6 years ago
Jumar Macato
bd51fa0cd0
Exclude snap directories in dev mount.
6 years ago