Steven Kirk
5d007606ba
Rework HasSystemDecorations.
Make it a direct property that is backed by `SystemDecorations`. Moved the changed handlers to `OnPropertyChanged`.
7 years ago
Deadpikle
a429159c3c
Add SelectedText to TextBox
7 years ago
ahopper
9207d439c4
local copies of .Count
7 years ago
ahopper
44c5b43402
Reduce deferred renderer enumerator allocations
7 years ago
Benedikt Schroeder
55b4a1930b
Cleanup invalidation of measure and render
7 years ago
Benedikt Schroeder
6c948af49d
Fix TextWrapping
7 years ago
Benedikt Schroeder
2d78458f74
Add padding
7 years ago
Dariusz Komosinski
35bce7b031
Avoid creating handler unsubscribe disposables unless explicitly requested.
7 years ago
Steven Kirk
d4165b74a6
Use words for arrow keys.
7 years ago
Steven Kirk
557b1eb3a6
Allow overriding inner menu padding.
7 years ago
Steven Kirk
8ffe5fb88e
Added a few more keys to key gesture converter.
7 years ago
Steven Kirk
e53078bc0d
Expose platform KeyGesture conversion as static method.
7 years ago
Steven Kirk
0b3e4101e2
Give input gesture TextBlock a name.
7 years ago
Steven Kirk
6f6522e287
Make EventSubscription a readonly struct.
7 years ago
Steven Kirk
119a975610
Handle adding/removing application styles.
7 years ago
Steven Kirk
cfae69dfdc
Pass ResourceChanged messages to child styles.
Fixes #3590 .
7 years ago
Steven Kirk
6db44298bb
Handle adding/removing nested styles.
7 years ago
Steven Kirk
e9256a9e40
Initial implementation of add/remove styles.
Only currently works on top-level `Styles` collections, not working in `Application.Styles`.
7 years ago
Steven Kirk
6b902254bc
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
7fb62b20fa
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
6f96d464af
Pass ResourceChanged messages to child styles.
Fixes #3590 .
7 years ago
Benedikt Schroeder
0c96a1e48e
Call InvalidateVisual when FormattedText is invalidated
7 years ago
Steven Kirk
df3fd0472e
Detach grid hack on logical tree detachment.
Doing it on visual tree detachment caused the menu to bug out when showing a submenu more than once.
7 years ago
Steven Kirk
71aca04e51
Improve platform display of KeyGesture.
7 years ago
Benedikt Schroeder
a6e86ae03e
Invalidate TextBox when text changes by binding
7 years ago
Dariusz Komosinski
1027168c61
Remove omen of bad performance.
7 years ago
Dariusz Komosinski
1909d7a778
Avoid IAffectsRender subscribe attempts on values that can't implement it.
7 years ago
Steven Kirk
022294ec7a
MenuItem.InputGestureText -> InputGesture
Changed `MenuItem`'s `string InputGestureText` property to `KeyGesture InputGesture` and gave it a value converter in the default template, because the string representation of a key gesture depends on platform, and putting platform-specific behavior into `ToString` isn't a good idea.
7 years ago
Nathan Garside
e5f0ac3dda
Fix event binding for HasSystemDecorations property
7 years ago
Mathis Rech
c28046cbbc
Fix padding inconsistency
The padding is always added to the side the headers are at, except when the headers are right, when the padding is at the bottom. I believe this was a typo.
7 years ago
Steven Kirk
fece964458
Remove commented-out code.
7 years ago
Steven Kirk
aea4bce0dd
Pass initial size for list.
7 years ago
Steven Kirk
5dc159dc42
Update Avalonia.DesktopRuntime to .NET core 3.1.
7 years ago
Steven Kirk
30e8cac05d
Update to .NET core 3.1.
7 years ago
Benedikt Schroeder
2d5258e118
Invalidate text layout when the available size changes
7 years ago
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
Вадим Мельников
3aab2d5619
Added functionality to use CroppedBitmap directly in XAML
7 years ago
Gary Hertel
1cfc530c11
Changed the DataGrid mouse wheel delta from 2 to 3 lines (48 pixels -> 72 pixels)
The default Windows scroll is 3 lines, which requires a lot less scrolling than the current default.
This value is currently hardcoded and can't be changed elsewhere.
7 years ago
José Pedro
2cb3b5f916
Updated obsolete API usages in interfaces.
7 years ago
Benedikt Schroeder
38bd8b8010
Fix text line hit testing
Fix some xml comments
7 years ago
Dariusz Komosinski
bc938eabba
Let the compiler to emit handler lookup for us. Get rid of extra closure when removing handlers.
7 years ago
Benedikt Schroeder
779ceabc68
Fix text trimming
7 years ago
Benedikt Schroeder
dba878fa98
Revert langversion usage
7 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
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
Symbai
acbaecd311
Update DataGridColumnHeader.cs
7 years ago
Steven Kirk
2944099428
Display gestures in NativeMenuBar.
To do this we needed to change the `KeyGesture.ToString()` method to produce input gesture text suitable for menus. Also demonstrated in `MainWindow` how to produce different gestures/headers depending on platform.
7 years ago
Steven Kirk
f5c9539c7a
Use correct property type.
7 years ago