Dariusz Komosiński
adf92d2ecb
Add license headers.
7 years ago
Dariusz Komosiński
0f414d8391
Fix unit tests.
7 years ago
Steven Kirk
f9b263997f
Don't override UserControl.StyleKey.
Instead of pinning `UserControl.StyleKey` at `typeof(UserControl)`, make the `UserControl` default template selector `:is(UserControl)`. This will allow controls derived from `UserControl` to be more easily styled.
7 years ago
Dariusz Komosinski
1db8031b02
Custom skia gpu support.
7 years ago
MonkAlex
1114df5d45
#2356 Small rename Objects to Items
7 years ago
MonkAlex
1c460061cc
#2355 Remove useless xmldoc.
7 years ago
Dariusz Komosiński
10cb451ad0
Add Equals implementation to the TransformedBounds
7 years ago
MonkAlex
235cc660fd
#1052 Rename TreeContainerIndex.Items to Containers
7 years ago
MonkAlex
33a6ae8215
#2355 Direct access for treeview index values when select all.
7 years ago
MonkAlex
57dcfadf57
#2355 'Select all' support TreeView too, only visible part of tree.
7 years ago
MonkAlex
e38e49e7d0
#2355 'Select all' for SelectingItemsControl with platform hotkey configuration.
7 years ago
MonkAlex
e3d7d47753
#2355 Ctrl+A hotkey for SelectingItemsControl
7 years ago
Dariusz Komosinski
c3480fb840
Remove TreeViewHelper and shorten the code so the extra struct is not needed.
7 years ago
Dariusz Komosinski
5822e60db6
Fix ternary operator formatting, add config entry to the .editorconfig.
7 years ago
Dariusz Komosinski
c9d8fa6a9d
Move SynchronizeItems about private methods.
7 years ago
artyom
5e7a5b460c
Synchronize DataContext with ReactiveUI.IViewFor.ViewModel property
7 years ago
Dan Walmsley
9edbd199e9
formatting.
7 years ago
Dan Walmsley
e799543b94
fix menuitem command property.
7 years ago
Dan Walmsley
17ac0b8cb1
prevent occasional exception being logged in render loop.
7 years ago
Dariusz Komosinski
6727bbe3df
Fix Skia rendering hairline width strokes when Pen thickness is 0.
7 years ago
Dariusz Komosinski
2c04c95a12
Expose SelectedItems property. Add more tests for edge cases failing for ListBox.
7 years ago
José Pedro
96d84c942d
Use Array.Empty instead of allocating empty arrays.
7 years ago
Steven Kirk
36da749d38
Use comma operator for Separator style.
7 years ago
Steven Kirk
89d969b367
Added selector comma operator.
The comma selector can be used to separate a number different selectors, all of which will be applied to the control with an OR.
Fixes #1742
7 years ago
Dariusz Komosinski
85d309830a
TreeView multiple selection support.
7 years ago
Steven Kirk
4a91003981
FormattedText.Measure() -> FormattedText.Bounds.
Changed `FormattedText.Measure` method to a `Bounds` property.
7 years ago
Steven Kirk
e7e57d0e91
Fix text rendering where TextAlignment != Left.
The renderer was using the wrong bounds for text where `TextAlignment != Left` as seen in #1625 . To fix this, change `FormattedTextImpl.Size` to `Bounds`, which returns a rect that takes into account the text alignment and similarly change `FormattedText.Measure` to return a `Rect` instead of a `Size.
Fixes #1625 .
7 years ago
Dan Walmsley
5128f70f48
whitespace.
7 years ago
Dan Walmsley
6b2d9a020f
Revert "Add GCNotifier class."
This reverts commit d42b22d5e8 .
7 years ago
Steven Kirk
12cd666dc7
Respect RenderTransform in GetPosition.
Fixes #1558 .
7 years ago
Steven Kirk
e486d7f8ea
Allow `{Binding .}` syntax.
Fixes #1898 .
7 years ago
Dan Walmsley
d42b22d5e8
Add GCNotifier class.
7 years ago
Steven Kirk
569e7d29fc
Don't try to invert a non-invertible matrix.
Fixes #2053 .
7 years ago
Steven Kirk
f322501852
Don't draw null geometry in GeometryDrawing.
And add a guard to `DrawingContext` to detect having a null `Geometry` passed, as we do for `DrawImage`, `DrawText` etc.
Fixes #2053 .
7 years ago
Steven Kirk
7a738e18dd
Allow for null DefiningGeometry in Shape.
Fixes #2335 .
7 years ago
Nikita Tsukanov
a89b6128dd
Call Compact on Add
7 years ago
José Pedro
48dccadfb0
Fixed argument exception constructor calls.
Use nameof where possible.
Fixed wrong check in RelativeSource.AncestorLevel.
7 years ago
Steven Kirk
ce3138efda
Don't create a schema context each time.
The change in the previous commit to create a new `AvaloniaXamlSchemaContext` for each instance of `AvaloniaXamlLoader` had a negative performance effect. Instead, keep two instances of the schema context around: one for normal loading and one for design-time loading.
7 years ago
Steven Kirk
4a5e11f6aa
Fix keyboard interaction for ContextMenu.
7 years ago
Steven Kirk
a5f07f78e9
Fixed context menu styling.
7 years ago
Steven Kirk
fbfd5d80d1
Added MenuBase.
And use it as base class for both `Menu` and `ContextMenu`.
7 years ago
Steven Kirk
f85995ed7e
Move design-time handling of events...
...to `Avalonia.Markup.Xaml`. Also added tests: tests required a new instance of `AvaloniaXamlSchemaContext` for each `AvaloniaXamlLoader` as otherwise one test can affect other tests.
7 years ago
Dan Walmsley
2d7d9bc900
whitespace.
7 years ago
Dan Walmsley
556c1373e1
fix affectsrender memory leak with WeakEventHandlerManager
7 years ago
Nikita Tsukanov
4af9b22c59
Introduced WeakEventHandlerManager
7 years ago
Nikita Tsukanov
64a0ae0921
[X11] Fixed window size hints handling
7 years ago
Jumar Macato
2da756aa53
Make parse function in Cue.cs explicitly typed in order for Xaml-IL tocorrectly compile and avoid unnecessary boxing.
7 years ago
Steven Kirk
40b0bbd46c
Make sure PopupRoot.Parent is a Popup.
Fixes #2137 .
7 years ago
Dariusz Komosiński
823b58b335
Add doc comment to related methods.
7 years ago
Dariusz Komosinski
3d6b4a875b
Do not capture this when creating _drawOperationsRefCounter.
7 years ago