Steven Kirk
3dcaa174bf
Initial tests for add/remove 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
Steven Kirk
146fd8f147
Merge branch 'master' into refactor/styling
7 years ago
Steven Kirk
458a0c62fe
Merge pull request #3646 from Gillibald/fixes/TextPresenterInvalidate
Call InvalidateVisual when FormattedText is invalidated
7 years ago
Benedikt Schroeder
0c96a1e48e
Call InvalidateVisual when FormattedText is invalidated
7 years ago
Jumar Macato
40e853d6d8
Merge pull request #3642 from MarchingCube/optimize-affects-render
Avoid IAffectsRender subscribe attempts on values that can't implement it
7 years ago
Jumar Macato
7f6b176bd5
Merge branch 'master' into optimize-affects-render
7 years ago
Benedikt Stebner
1347f739f9
Merge pull request #3643 from Gillibald/fixes/TextBoxTextChanged
Invalidate TextBox when text changes by binding
7 years ago
Benedikt Stebner
6c18e2d811
Merge branch 'master' into fixes/TextBoxTextChanged
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
Benedikt Stebner
57586bd4a2
Merge pull request #3638 from Artentus/patch-1
Fix padding inconsistency
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
Nikita Tsukanov
7489d36f9d
Merge pull request #3637 from Gillibald/fixes/TeckBlockConstraintUpdate
Invalidate TextLayout when the available size changes
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
Steven Kirk
0a579a2fa9
Merge pull request #3597 from AvaloniaUI/fixes/3590-nested-resources
Fix DynamicResource in Style resources
7 years ago
Steven Kirk
13db1eb221
Merge branch 'master' into fixes/3590-nested-resources
7 years ago
Steven Kirk
29b3a83014
Merge pull request #3438 from Gillibald/feature/TextFormatter
Full Unicode support for TextBlock
7 years ago
Benedikt Stebner
560688a409
Merge branch 'master' into feature/TextFormatter
7 years ago
Steven Kirk
938b5ed18f
Merge pull request #3520 from TyrenDe/FixOpenBrowserIssueOnSomeOSXMachines-3519
Fix issue #3519 where the open text file dialog would show on some machines
7 years ago
Benedikt Stebner
298dfda766
Merge branch 'master' into feature/TextFormatter
7 years ago
Nikita Tsukanov
89f2708987
Merge branch 'master' into FixOpenBrowserIssueOnSomeOSXMachines-3519
7 years ago
Steven Kirk
d5f4b4d4ef
Merge branch 'master' into fixes/3590-nested-resources
7 years ago
Steven Kirk
11c11ce935
Merge pull request #3626 from garyhertel/increase_datagrid_wheel_delta
Changed the DataGrid mouse wheel delta from 2 to 3 lines
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
Benedikt Schroeder
38bd8b8010
Fix text line hit testing
Fix some xml comments
7 years ago
Dariusz Komosiński
43d69ebe7f
Merge branch 'master' into fixes/3590-nested-resources
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
82526bc0da
Merge pull request #3618 from Symbai/datagridClearSort
Add CTRL+Click to clear DataGridColumn sort
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
Dariusz Komosiński
fe2af3fd4d
Merge pull request #3604 from jp2masa/update-obsolete-api-usages
Fixed obsolete API usages
7 years ago
Dariusz Komosiński
7e8a957684
Merge branch 'master' into update-obsolete-api-usages
7 years ago
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
Dariusz Komosiński
c4db9c5886
Merge branch 'master' into fixes/3590-nested-resources
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
danwalmsley
097372c243
Merge pull request #3613 from AvaloniaUI/osx-potential-deadlock-in-user-code
OSX - fix potential deadlock with user code
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