Steven Kirk
dbe03e090a
Disallow OneTime bindings in setters.
I'm not sure what should happen here when the style deactivates and is re-activated. Should the one-time binding trigger again? Or should it only trigger on first activation? Wait and see what the use-case for this is (if any).
7 years ago
Steven Kirk
3609759f4e
Documentation.
7 years ago
Steven Kirk
8b3ac277f2
Added animations support back in.
Animations are still using an `IObservable<bool>` to trigger them as I didn't feel confident refactoring them as part of this PR.
7 years ago
Steven Kirk
18537addd7
Fix problems with setter binding priorities.
We need to make sure to set up the bindings as soon as the setter is instanced, even if it's not activated immediately.
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
2e99fa9a91
Make setting styled values disposable.
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
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
Dariusz Komosinski
77df8b319e
Ensure that weak refs with collected refs are compacted as well.
7 years ago
Symbai
2e4624683b
Update Default.xaml
7 years ago
Joe Clapis
8bfbc10049
Added the ScrollToHome() and ScrollToEnd() methods to ScrollViewer.
7 years ago
Symbai
010ec8273d
Update Default.xaml
7 years ago
Symbai
10ad9eb7ed
Update ComboBox.xaml
7 years ago
Steven Kirk
36d176f5aa
Correctly convert strings to property value type.
7 years ago
Steven Kirk
966d6d511a
Display property types.
7 years ago
Steven Kirk
8aecb2de2b
Show column headers and allow resizing.
7 years ago