Tom Edwards
8a45d451b3
Fix exception when a template does not contain PART_ItemsPresenter
3 years ago
Tom Edwards
95cbd82144
Fixed SelectedContent and SelectedContentTemplate only updating when the selected tab changes
Flipped ContentTemplate priority to match WPF, where TabItem's template wins over TabControl's
Made various properties read-only DirectProperty
3 years ago
Steven Kirk
6b2d6f71a1
Fix tab navigation in TabControl.
This control is a bit trickier as `KeyboardNavigationMode.Once` needs to only apply to the header panel. Set `KeyboardNavigationMode.Once` on the panel when the template is applied, and forward `TabOnceActiveElement` from the `TabControl` to the panel.
3 years ago
Steven Kirk
8bfe6b9645
Support heterogeneous item containers.
3 years ago
Max Katz
6523320a7b
Revert some of SetCurrentValue
This reverts commit ead92a6122 .
3 years ago
Max Katz
a9688a83a1
Suppress warnings that are expected behavior
3 years ago
Max Katz
ead92a6122
Fix SetCurrentValue warnings
3 years ago
Julien Lebosquain
aa55ad2329
Addressed feedback on PR #10608
3 years ago
Giuseppe Lippolis
5cc0edb8ae
fix: ItemContainerGenerator obsolete member after #9677
3 years ago
Steven Kirk
c99307c6fa
Use more consistent naming.
4 years ago
Steven Kirk
1950e4b0a3
Remove TabControl.HeaderDisplayMemberBinding.
As `DisplayMemberBinding` should select the member for the header (in WPF it's `DisplayMemberPath`). Also set `TabItem.TabStripPlacement`.
4 years ago
Steven Kirk
8bb1349785
Setup TabItems.
4 years ago
Steven Kirk
6626a2e218
Update TabControl on container index change.
4 years ago
Steven Kirk
b3982f1828
Create correct TabControl containers.
4 years ago
Steven Kirk
1101f28dd7
Refactored ItemContainerGenerator.
A bunch of tests still failing, and some code commented out, but outlines the new API shape.
4 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
4 years ago
Tim
30e4651869
Add TabItem HeaderDisplayMemberBinding
4 years ago
robloo
d4540ed0e5
Add template part attributes to common controls
4 years ago
Dariusz Komosinski
27f920a79d
Fixed ItemContainerGenerator usages.
4 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
Sergey Mikolaytis
bef72b3477
fix some issues by requests
4 years ago
Sergey Mikolaytis
8cbd26ffdf
Remove redundant changes, improve tab control pointer type check
4 years ago
Steven Kirk
0756c1b3be
Use new properties to remove some peers.
Simple peers which only change the accessibility view or control type can now use the new `AutomationProperties`.
5 years ago
Steven Kirk
11c60b4294
Decouple automation peers from platform nodes.
Now peers are entirely unaware of the platform implementation.
5 years ago
Steven Kirk
2a44d8b564
Initial implementation of UI automation.
Follows WPF/UWP API as closely as possible. Limited to win32 right now. Broken in many places.
5 years ago
Steven Kirk
82273680f7
Update selected content when containers recycled.
Hopefully fixes #4654 once and for all.
6 years ago
Steven Kirk
90dc7ea952
Fix failing test but actual issue not fixed.
Fixed the failing test for #4654 but actual issue still remains. Needs more test.
6 years ago
Steven Kirk
bc079008d1
Remove usage of deprecated input APIs.
6 years ago
Steven Kirk
2fcde9e34d
Use OnApplyTemplate instead of OnTemplateApplied.
- More similar to WPF API
- Less bug-prone (see #3744 )
`OnTemplateApplied` still exists, but is deprecated and does nothing.
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Benedikt Schroeder
38ae0140c2
Remove special case that checks for AvaloniaList<object>
7 years ago
Benedikt Schroeder
5df55e5c9f
Fix multiselection
7 years ago
Benedikt Schroeder
b20f3f4cdf
Update selected context when selected index changes
7 years ago
Nikita Tsukanov
a16e3bff7f
Added InitialPressMouseButton to PointerReleasedEventArgs that returns the button that caused the PointerPressed event
MouseButton is now deprecated with error, since people need to decide which behavior they want
7 years ago
Steven Kirk
d7357ec876
Remove ContentControlMixin.
And implement the functionality in the content controls themselves. `ContentControlMixin` was too complex and even with its complexity had bugs (such as in #2821 ). By moving the functionality to the content controls there is some repeated code but it's much more straightforward.
7 years ago
Nikita Tsukanov
cba7de5f06
Do not crash
7 years ago
Nikita Tsukanov
ec99f7d1a9
Initial scroll gesture implementation
7 years ago
Steven Kirk
3d578464c6
Register TabControl with ContentControlMixin.
`ContentControlMixin` implements a number of behaviors related to logical children that controls that have a `ContentPresenter` need in order to function correctly.
Also renamed `PART_Content` to `PART_SelectedContentHost` to match WPF
Fixes #2191
7 years ago
Benedikt Schroeder
99c2b49367
Code style
8 years ago
Benedikt Schroeder
f8b196a39b
Minor fixes
8 years ago
Steven Kirk
fad2e317ba
Make AffectsMeasure/Arrange/Render typed.
8 years ago
Steven Kirk
fc709c3a0f
Partially fix tab strip orientation.
8 years ago
Benedikt Schroeder
4f549c16fc
Initial
8 years ago
Jumar Macato
2556b50992
Rename Carousel & TabControls Transition property to PageTransitions to avoid confusion to the upcoming Transitions from Avalonia.Animations.
8 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Wiesław Šoltés
c47b8fef5b
Added TabStripPlacement property
11 years ago
Steven Kirk
5bfa93b747
Renamed Deck -> Carousel.
11 years ago