José Pedro
a76d14650b
Fixed obsolete API usages.
7 years ago
Steven Kirk
8ec7988e66
Add an OrActivatorBuilder because we have one for And.
7 years ago
Steven Kirk
13ba7f3d0b
Refactored selector matching.
Match selectors from left-to-right, as before we were checking things like property equality (and creating a `PropertyEqualsActivator`) before checking that the control is of the correct type. Also hopefully makes the selector matching logic more readable.
7 years ago
Steven Kirk
dc55d65287
Refactored styling.
- Don't use Rx in the styling system. Instead introduces `IStyleActivator` which is like an `IObservable<bool>`-lite in order to cut down on allocations.
- #nullable enable on touched files
7 years ago
Steven Kirk
b82ca9aca9
Add an AvaloniaProperty visitor.
We already have some specific internal methods for routing certain methods via an untyped property to a typed property, but adding support for the visitor pattern allows us to support arbitrary use-cases.
7 years ago
Steven Kirk
097eeb646f
Don't allow StyledElement.Styles to be set.
It's not settable in Application and I can't see a reason it should be in `StyledElement`. Also add a `Styles` ctor that takes a parent.
7 years ago
Steven Kirk
ac8e8db72b
Make Application handle style resources properly.
7 years ago
Steven Kirk
2e99fa9a91
Make setting styled values disposable.
7 years ago
Steven Kirk
0f7e3e1b82
Make EventSubscription a private class.
7 years ago
Steven Kirk
cca4247c05
Added EventRoute.
Instead of traversing the tree while raising an event, instead first build an event route and then raise the event along it.
Fixes #3176
7 years ago
Steven Kirk
b966bd390c
Enable NRT in Avalonia.Interactivity.
7 years ago
Steven Kirk
8a0ccea273
Add MenuItem.InputGestureText.
7 years ago
Steven Kirk
2bf2e60ae0
Don't add extra pixel to AccessText measurement.
It's not needed; the underscore can be drawn in the descender space.
7 years ago
Steven Kirk
4f2c215993
Pass ResourceChanged messages to child styles.
Fixes #3590 .
7 years ago
Nikita Tsukanov
2bef4dc540
Always notify gesture recognizers about the loss of pointer capture
7 years ago
Nikita Tsukanov
9b4253f4d7
Fix inertial scrolling
7 years ago
Вадим Мельников
c34bfc56f8
Add class CroppedBitmap
7 years ago
Steven Kirk
de2b1925d9
Try TypeConverters in TryConvert.
Fixes #3584 .
7 years ago
Steven Kirk
77a29aaa89
Fixed nits.
7 years ago
Steven Kirk
6e0575a778
Added some XML docs.
7 years ago
Dan Walmsley
97bcb443ff
dont crash when closing window on OSX.
7 years ago
Symbai
e92dbb14df
Update IInputElement.cs
7 years ago
Symbai
994def4642
Update TextBox.cs
7 years ago
Symbai
dc8881c846
Update TextBox.cs
7 years ago
Steven Kirk
aec9c6e5e2
Make animation value override local value.
This line was missing. Might be the cause of #3466 .
7 years ago
Symbai
b814eaac99
inherit from ContentControl
7 years ago
Symbai
7ca8d02123
Revert "change selected row background brush"
This reverts commit 863b0da1a1 .
7 years ago
Symbai
6fe5892ad9
Include vertical alignment of floating watermark
7 years ago
Symbai
f4fe0b126c
init
7 years ago
Symbai
5ad2b362df
Update TextBox.cs
7 years ago
Symbai
863b0da1a1
change selected row background brush
7 years ago
Steven Kirk
6447d4f98d
Use TypeConverter correctly.
7 years ago
Steven Kirk
52e30f6a0e
Remove Avalonia.Dialogs dependency on diagnostics.
And add explicit dependency on `Avalonia.Diagnostics` to samples.
7 years ago
Steven Kirk
195c7ba6ea
Don't ignore available size in window measure.
Fixes #3569 .
7 years ago
Symbai
8b0e291f41
Update Default.xaml
7 years ago
Steven Kirk
344aad94b6
Use XDeleteProperty for null icon.
7 years ago
Symbai
da2c7193cc
Add public DataGrid scroll events ( #3547 )
* Update DataGrid.cs
* Update DataGrid.cs
Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
7 years ago
Symbai
fa9822b1ef
Add Progressbar ShowProgressText property ( #3531 )
7 years ago
Steven Kirk
384ff5992a
Allow assigning null to Window.Icon.
7 years ago
Steven Kirk
e994b855d5
Don't consider disabled controls when moving focus.
Fixes #3426 .
7 years ago
Steven Kirk
edc8bece4e
Raised property changed when binding completes.
Fixes #3545
7 years ago
Steven Kirk
187e45d021
Make ClearLocalValue notify with correct priority.
7 years ago
Dariusz Komosinski
c91559548e
Remove LINQ from Visual and StyledElement attach/detach funtions.
7 years ago
Dariusz Komosinski
2b6a2f4a9b
Optimize memory allocations when attaching styles.
7 years ago
Steven Kirk
d5fc004df0
Prevent reentrancy in ExecuteInitialLayoutPass.
Fixes #3550 .
7 years ago
Symbai
10d1412d0c
Update ComboBox.xaml
7 years ago
Steven Kirk
56825d252e
Expose ContentPresenter from ItemsControl.LogicalChildren.
Exposing the `ContentPresenter.Child` in `ItemsControl.LogicalChildren` was causing problems when detaching and reattaching an `ItemsControl` to the logical tree. Instead, expose the `ContentPresenter` itself in effect meaning that `ItemsControl` has a "container" type just like the controls derived from it.
Fixes #3487
7 years ago
Symbai
5576a644b0
Update Default.xaml
7 years ago
Nathan Garside
c0e337d61f
Use enum in mac interop
7 years ago
Nathan Garside
7b9d32af85
Rework system decorations
7 years ago