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.
7 years ago
Steven Kirk
37d00781cb
Invalidate DrawingImage when Drawing changed.
And add some XML docs.
7 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`
7 years ago
Steven Kirk
fd08fdc820
Update ControlCatalog image page.
To display `DrawingImage`.
7 years ago
Steven Kirk
11a714dbf7
Use Size not PixelSize in ImageTests.
`Image` now bases the size of a bitmap on `IImage.Size`.
7 years ago
Steven Kirk
6bd9ca8fa3
Initial implementation of DrawingImage.
7 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.
7 years ago
Jumar Macato
e822c24282
Merge pull request #3373 from AvaloniaUI/fixes/3371-image-sizing
Added Image.StretchDirection and fix Image measurement
7 years ago
Steven Kirk
4d8266df9c
Port Image sizing algorithm from WPF.
Fixes #3371
Fixes #2380
7 years ago
Steven Kirk
062ec0ccb6
Added Image.StretchDirection.
But not yet implemented.
7 years ago
Steven Kirk
a0f72ff47c
Added failing tests for #3371 .
7 years ago
Jumar Macato
fe2d2ac9d6
Merge pull request #3327 from AvaloniaUI/fixes/3323-resourcedictionary-resource
Fix referencing resources in merged dictionaries
7 years ago
Steven Kirk
e41c5864ec
Merge branch 'master' into fixes/3323-resourcedictionary-resource
7 years ago
Steven Kirk
e48bbe667d
Merge pull request #3369 from AvaloniaUI/fixes/2732-textbox-undo
Snapshot TextBox undo text after paste.
7 years ago
Steven Kirk
4c2b77fdb6
Snapshot undo text after paste.
Fixes #2732
7 years ago
danwalmsley
e7f546ed7f
Merge pull request #3363 from PJB3005/19-12-16-egl
Fix loading EGL functions on GLX.
7 years ago
Pieter-Jan Briers
fc5ada5e23
Use invariant culture.
7 years ago
Pieter-Jan Briers
fb1dcc11b4
Fix loading EGL functions on GLX.
This fixes apps refusing to run on Arch Linux.
7 years ago
Dariusz Komosiński
3dbbe6d531
Merge pull request #3359 from jp2masa/target-null-value
Fixed BindingExtension.TargetNullValue default value
7 years ago
José Pedro
6fabfdc561
Fixed BindingExtension.TargetNullValue default value.
7 years ago
Dariusz Komosiński
a7ebcf89fe
Merge pull request #3348 from pr8x/fix-TargetNullValue-xaml
Adding TargetNullValue to BindingExtension
7 years ago
Dariusz Komosiński
2b59c86170
Merge branch 'master' into fix-TargetNullValue-xaml
7 years ago
danwalmsley
9e347316b7
Merge pull request #3345 from AvaloniaUI/fixes/filter-snap-dir-linux
Exclude snap directories in Managed Dialogs volume enumeration
7 years ago
Jumar Macato
769a27ecb1
Merge branch 'master' into fixes/filter-snap-dir-linux
7 years ago
Nikita Tsukanov
101c54f9d2
Merge pull request #3338 from AvaloniaUI/fixes/osx-rapid-menu-open-crash
Fixes/osx rapid menu open crash (many osx stability issues)
7 years ago
Luis von der Eltz
d88640b1ea
!B Fixing test
7 years ago
Luis v.d.Eltz
adb1bb9a1d
Merge branch 'master' into fix-TargetNullValue-xaml
7 years ago
Luis v.d.Eltz
e89d5af718
Adding unit test
7 years ago
danwalmsley
d8bde40e4b
Merge branch 'master' into fixes/filter-snap-dir-linux
7 years ago
danwalmsley
f41edf5ae6
Merge branch 'master' into fixes/osx-rapid-menu-open-crash
7 years ago
Nikita Tsukanov
cb136fbd48
Merge pull request #3350 from AvaloniaUI/fixes/workaround-rapid-menu-issue
Workaround rapid menu open-close issue
7 years ago
danwalmsley
5cc4cbb0c4
Merge branch 'master' into fixes/osx-rapid-menu-open-crash
7 years ago
Dan Walmsley
69b7bc2041
[Popup] Use anchor and gravity to get the correct positioning under the mouse.
7 years ago
Dan Walmsley
a29404c3f7
[Popup] opens under mouse as 0.8 release did. Prevents rapid opening and closing.
7 years ago
Luis v.d.Eltz
7e713cb4c6
Merge branch 'master' into fix-TargetNullValue-xaml
7 years ago
Luis v.d.Eltz
b1e9c02828
Adding TargetNullValue to BindingExtension
7 years ago
Jumar Macato
bd51fa0cd0
Exclude snap directories in dev mount.
7 years ago
Dan Walmsley
1f9ab92359
[OSX] use sensible initial window size values
7 years ago
Dan Walmsley
aaff106bee
[OSX] remove unnecessary dispatch and code to clear content.
7 years ago
Dan Walmsley
d1089b62c8
[OSX] Dont crash if Window is null when Close is called.
7 years ago
Dan Walmsley
8ff1fdeceb
[OSX] dont override dealloc methods, this is causing wierd stuff to happen.
7 years ago
Nikita Tsukanov
e9bae4ea21
Merge pull request #3343 from AvaloniaUI/fixes/osx-swallowed-nre-when-window-closes
[OSX] null check to prevent NRE when window closes.
7 years ago
Dan Walmsley
c907172b8f
[OSX] null check to prevent NRE when window closes.
7 years ago
Dan Walmsley
586e96cd07
synchronise acces to lockFocusIfCanDraw.
7 years ago
Dan Walmsley
f5acf84fb6
initialise closed variable.
7 years ago
Dan Walmsley
6383d4f1ea
[OSX] catch exceptions when window closed and tries to lockFocusIfCanDraw.
7 years ago
Dan Walmsley
bb571a4a03
[OSX] access scaling and window size in thread safe manner.
7 years ago
Dan Walmsley
3cec9fb412
[OSX] fix BAD ACCESS (Segmentation Fault) when rapidly trying to open popups quicker than windows can be created.
7 years ago
Jumar Macato
01c1669e7b
Merge branch 'master' into fixes/3323-resourcedictionary-resource
7 years ago
Jumar Macato
7f11d8374b
Merge pull request #3329 from donandren/improveparsing
add some parsing of primitive types
7 years ago