José Pedro
7cccc6bda0
Use nameof where possible.
8 years ago
José Pedro
60a04fbd24
Fixed ToggleButton.IsChecked default value.
8 years ago
Jeremy Koritzinsky
e462e06193
Use memcpy instead of System.Runtime.CompilerServices.Unsafe
8 years ago
Jeremy Koritzinsky
1c12cd4bd6
Fix x64 builds of Avaloina.Direct2D1. Refactor build scripts to reduce time and fix issues.
8 years ago
Jeremy Koritzinsky
f72577cf92
Clean up test scripts
8 years ago
Dan Walmsley
b944783c1b
fix Skia SetForegroundBrush when length = 1.
8 years ago
M. ter Woord
09c7c32e19
Add the missing file.
9 years ago
M. ter Woord
ad02c53a46
- Add XamlLoadException
- Use it for the new load exception info.
9 years ago
Jeremy Koritzinsky
ba481365f6
Enable turning off the setup check for appbuilder tests.
9 years ago
M. ter Woord
381cd64b1f
Add the uri to the error message, that way nested load errors can be diagnosed much quicker.
9 years ago
Jeremy Koritzinsky
23af42e423
Fix explicit StylingParent definition.
9 years ago
Jeremy Koritzinsky
b463d04e9f
Make KeyGestures with +,-,. in them match with both the non-numpad keys and the matching numpad keys.
Fixes #225
9 years ago
Jeremy Koritzinsky
6d075ad27b
Fix #424 .
9 years ago
Jeremy Koritzinsky
8bcd07730a
Change StylingParent for Popup to be PopupRoot so local styles flow to it.
9 years ago
Jeremy Koritzinsky
bdaf4a2046
Fix #1182 .
9 years ago
Unknown
ea65626a46
use lower case extensions for avalonia documentation files.
9 years ago
Steven Kirk
05da271376
Updated Portable.Xaml
Merged `fixes/76-trim-whitespace` into `avalonia` branch (https://github.com/cwensley/Portable.Xaml/pull/77 ). Fixes whitespace trimming in Xaml reader.
Fixes #1275
9 years ago
Steven Kirk
bf2ca5da72
Removed unneeded code.
9 years ago
Steven Kirk
e49e682f9c
This Max shouldn't be needed.
9 years ago
Jeremy Koritzinsky
8733547cae
Make RangeBase.Value bind TwoWay by default. Fixes #841 .
9 years ago
Steven Kirk
7405cd7952
Match formatting of other block.
9 years ago
Steven Kirk
222ded0c33
Removed remaining collection set.
9 years ago
Steven Kirk
4676ac5fb2
Don't use ObserveOn in Bindings.
Instead of using `Observable.ObserveOn` in bindings, interface with `Dispatcher.UIThread` to schedule binding notifications on the UI thread. This saves a significant amount of memory.
9 years ago
Jeremy Koritzinsky
1cfc9fe47f
Remove extraneous documentation comment.
9 years ago
Jeremy Koritzinsky
a02515fe19
Make pending set condition always !object.Equals since the other condition in PriorityValue didn't match expected behavior as per new unit tests.
9 years ago
Steven Kirk
b3fca2360d
Fix failing skia render test
Make sure we restore the transform in `EndRender` and use the same order of pushing/popping operations that `ImmediateRenderer` uses.
9 years ago
Steven Kirk
2a87dbd6ca
Fix opacity mask rendering.
We're potentially creating a new immutable version of the opacity mask each time the `VisualNode` is updated. Need to implement comparison between mutable and immutable brushes.
9 years ago
Steven Kirk
1d1f31794e
Fix layers with opacity.
We were pushing the opacity twice.
9 years ago
Steven Kirk
e6b5df8d08
Simplified DeferredRendererTests,
9 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
9 years ago
Jeremy Koritzinsky
05eda280de
Refactor DeferredSetter logic to allow passing references to backing fields and utilizing that in all usages. Refactor SetAndRaise logic to be combined and simplified between the two use cases. Now the common case delegates to the less specialized case.
9 years ago
Jeremy Koritzinsky
ca9a4c4128
PR Feedback.
9 years ago
Jeremy Koritzinsky
d8efff505d
Clean up formatting. Fix bug in PriorityValue usage of DeferredSetter. Change DeferredSetter to use ConditionalWeakTable to not hold strong references to PriorityValue objects.
9 years ago
Steven Kirk
d0be429bd2
Tried to make IsAnimating logic clearer.
9 years ago
Steven Kirk
9609d93f3b
Don't create render layers for non-parent controls.
Only create a new render layer when a control has both an animating opacity _and_ children.
9 years ago
Steven Kirk
68bdbca899
Only create render layers when Opacity is animating.
Previously we were creating a new render layer for all controls with `Opacity != 1`. This was causing the `Calendar` page in ControlCatalog to render _really_ slowly. Instead, only create a new render layer when `Opacity` is being animated.
Also don't even render controls where `Opacity == 0`.
9 years ago
Steven Kirk
05575f9ea8
Display # of layers next to FPS counter.
9 years ago
Steven Kirk
409e40c8be
Added AvaloniaObject.IsAnimating(property).
Added a method to test whether a property on an object is currently animating.
9 years ago
Steven Kirk
f014bd576c
Pass enableDataValidation to all bindings.
#1248 was caused by not passing the `enableDataValidation` setting to all types of binding. Fix this.
Fixes #1248 .
9 years ago
Steven Kirk
0ad1f87927
Fix #1303 .
Don't pass a null `Path` to `Binding`.
9 years ago
Steven Kirk
b40be8b1c4
Fix error in AvaloniaList.MoveRange event.
It was raising the event with the offset `newIndex` rather than the `newIndex` that was passed.
9 years ago
Steven Kirk
fc7a83ee72
Fixed panel collection change actions.
As suggested in #1286
9 years ago
Steven Kirk
299d066642
Make sure old adorner is removed.
Control enter/leave events seem to sometimes get raised in the wrong order, this needs investigation. However in the meantime, make sure that if there's an existing adorner it's removed before adding a new one.
Fixes #1299
9 years ago
Steven Kirk
91edffd8d2
Fixed #1297
Handle rounding errors when calculating increase button arrange rect.
9 years ago
José Pedro
22baf62f09
Fixed ProgressBar default alignment.
9 years ago
Steven Kirk
d1ebb8fc7d
Handle PopupRoot.Content = null.
Handle `PopupRoot.Content` being set to null.
Fixes #1247
9 years ago
Goldy
d4a32764ca
Add null check for parameter
Remove unused variable
9 years ago
Goldy
6dd497bbc8
Code improvement
Removed unused or duplicated code
9 years ago
Nikita Tsukanov
b49a7abbd1
Fixed if clause in ProgressBar.UpdateIsIndeterminate
Found by PVS studio
9 years ago
Steven Kirk
3dd11f9046
Make Content depend on ContentTemplate.
Make the `ContentPresenter.Content` property depend on `ContentPresenter.ContentTemplate` because otherwise a temporary control will be created by the presenter using the default template between the time `Content` and `ContentTemplate` is bound.
However, because Portable.Xaml doesn't actually _support_ `DependsOnAttribute` yet, also move the bindings for `ContentTemplate` above `Content` in the default themes.
This works around #1271 although #1284 fixes the underlying cause of the leak - this is more to prevent unnecessary controls being created.
9 years ago