Steven Kirk
4cc378ea0f
Property store can be typed on IValue.
6 years ago
Steven Kirk
a1353c7715
Remove unused method.
6 years ago
Steven Kirk
6f92e3786a
Fix typo.
6 years ago
Steven Kirk
3a80cee3fc
Add nullability annotations.
6 years ago
Steven Kirk
c2d5f62390
Avoid boxing if property is correct type.
For typed bindings, we'll have an `AvaloniaPropertyChangedEventArgs<T>` where `T` is the same as the type of the `AvaloniaPropertyObservable`. For non-typed bindings we'll have `object` as `T` so use the non-typed `AvaloniaProperty`.
6 years ago
Steven Kirk
1ff6e35a06
Disable nullable around generic T.
Compiler warns that `_value` is potentially null, but it can be a value or refernce type.
6 years ago
Steven Kirk
270f9718b8
Removed unused field.
6 years ago
Steven Kirk
f7f9e41bf7
Setter not needed.
6 years ago
Steven Kirk
fa81c42c56
BindingValue should be marked [Flags].
6 years ago
Steven Kirk
d0e2a844db
Removed unused owner reference.
6 years ago
Steven Kirk
00c1c35125
Go direct to property store.
To avoid a call to `VerifyAccess` (which shows up when profiling).
6 years ago
Steven Kirk
afce4460dd
Removed useless default values.
There's already an overload without the parameter.
6 years ago
Steven Kirk
685f3f7b6e
Fix typos.
6 years ago
Steven Kirk
5805eaf0f9
Fix compile errors after merge with master.
Due to `OnPropertyChanged` signature changing on branch.
6 years ago
Steven Kirk
ef42e9350d
Add doc comment for NonVirtualizingLayoutContext.
6 years ago
Steven Kirk
155915134e
Use correct context type.
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.
7 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.
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
Andrey Kunchev
c64cc71c6c
fix fontfallback for font with some styles like bold/italic etc.
7 years ago
Steven Kirk
fd08fdc820
Update ControlCatalog image page.
To display `DrawingImage`.
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
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
4c2b77fdb6
Snapshot undo text after paste.
Fixes #2732
7 years ago
Steven Kirk
47368017a7
Remove unused methods.
7 years ago
Steven Kirk
3a914c282b
Don't declare property fields AvaloniaProperty<>.
Instead use `StyledProperty<>`.
7 years ago
Steven Kirk
42bbb5e518
Removed unused methods.
7 years ago
Pieter-Jan Briers
fc5ada5e23
Use invariant culture.
7 years ago
Steven Kirk
623a925c39
Clarify difference between BindingValue and BindingNotifcation.
7 years ago
Steven Kirk
37db6c79e0
Fix one-way bindings with notifications.
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
José Pedro
6fabfdc561
Fixed BindingExtension.TargetNullValue default value.
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
b1e9c02828
Adding TargetNullValue to BindingExtension
7 years ago
Jumar Macato
bd51fa0cd0
Exclude snap directories in dev mount.
7 years ago