Dan Walmsley
9b24d68d71
Add placeholdertext properties to combobox
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
d1e4614a38
Added ComboBox.PopupClosedOverride.
To control whether the event that caused the popup to close is swallowed or passed through.
For now just implemented on `ComboBox` - we may want to implement it in future on all controls that display popups if this is something that proves generally useful.
Fixes #3845 .
6 years ago
Steven Kirk
a98b22c40c
Pass close event to Popup.Closed.
So that the event can be marked as handled if necessary. Mark the event as handled in `AutoCompleteBox`, `ComboBox` and `DatePicker`, but _not_ `ContextMenu`. Fixes #3760 .
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
Dariusz Komosinski
35bce7b031
Avoid creating handler unsubscribe disposables unless explicitly requested.
6 years ago
Steven Kirk
0f9ceb25b7
Make ScrollIntoView accept an index, not an item.
Fixes #2569 .
6 years ago
Steven Kirk
6001115573
Use SelectionModel in SelectingItemsControl.
6 years ago
José Pedro
fc9a6d5746
Updated obsolete API usages.
6 years ago
Dariusz Komosinski
a2c6bc1b7c
Remove usage of AddClassHandler that returns new lambda per invocation.
7 years ago
Nikita Tsukanov
f9561260a3
IPopupImpl is now optional advanced feature
7 years ago
Steven Kirk
2fa8247f01
Removed MemberSelector.
7 years ago
Steven Kirk
e6be9b7c5a
Renamed IsEnabledCore -> IsEffectivelyEnabled.
I now understand how WPF's `IsEnabledCore` works, and it's not like this. Rename `IsEnabledCore` to `IsEffectivelyEnabled` so that we can add a new `IsEnabledCore` property which works like WPF's.
This also aligns with the existing `IsEffectivelyVisible` property.
7 years ago
Steven Kirk
53b71076d6
DropDown -> ComboBox.
Renamed `DropDown` to `ComboBox` to fit in with WPF/UWP.
7 years ago
Andrey Kunchev
f285c38d27
improve dropdown key up/down and mouse wheel auto selections so they don't go through unselected state
7 years ago
Andrey Kunchev
af83673f91
make DropDown support mouse wheel
7 years ago
Andrey Kunchev
cd7c5eb762
Ensure selected DropDownItem is visible when dropdown is open
8 years ago
Andrey Kunchev
850cbfdbf0
Support out of the box Member Selector in DropDown
8 years ago
Andrey Kunchev
c4ab664833
Use Adorner Focus styling for focused DropDownItem
8 years ago
Andrey Kunchev
59a286ba10
let dropdown support virtualization if needed
8 years ago
Andrey Kunchev
a297f00863
Scroll and focus to selected item when dropdown is shown
8 years ago
Andrey Kunchev
d26d984256
focus dropdown item in more safe manner
8 years ago
Andrey Kunchev
16ebfb5be9
focus DropDown after DropDown popup closed, otherwise focus is unpredicatable
8 years ago
Andrey Kunchev
fa8380d92d
focus first item in DropDown on key up/down
8 years ago
Andrey Kunchev
4a57d4ddd0
fix click on dropdown when dropdown in other popup fixes #2058
8 years ago
CommonGuy
55da255d86
Improve KeyDown behavior in DropDown
8 years ago
Steven Kirk
ef44f2b908
Handle the click that opens a DropDown.
8 years ago
José Pedro
7cccc6bda0
Use nameof where possible.
8 years ago
Steven Kirk
2f48873184
Select dropdown item on focus.
Arrow keys within the dropdown are handled by the keyboard navigation handler, so detect when this focuses a new item and select it.
9 years ago
Jurjen Biewenga
3081a07f1c
Made the requested changes
9 years ago
Steven Kirk
268587c432
Fix DropDown popup opening.
When the `DropDown` control is clicked, toggle the opening of the popup.
Fixes #1169 .
9 years ago
Jurjen Biewenga
4f13d50496
Added initial changes to allow the user to change the selected item while the dropdown is closed but selected and allows the user to open the dropdown by pressing down
9 years ago
Nikita Tsukanov
39d5389b1f
Fixed build issues
9 years ago
Steven Kirk
e894df344c
Added DropDown.MaxDropDownHeight.
Fixes #654 .
10 years ago
Steven Kirk
5cd9b98057
Added ItemsControl.ItemTemplate property.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
81065f1d24
Added logical tree attachment events to ILogical.
10 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
adee104ad9
DropDown shouldn't be an IContentControl.
10 years ago
Steven Kirk
d9eee9fa4a
Make SelectionBoxItem a direct property.
10 years ago
Steven Kirk
2c9e1f8f7c
Correctly handle clicks outside Popups.
Set e.Handled = true on click outside Popup which removes the need for
the _closing stuff in DropDown.
10 years ago
Steven Kirk
2b09f5f6d1
Fix DropDown dropping down.
Make clicking on an open DropDown close it, and wire up the ToggleButon.
10 years ago
Steven Kirk
3b5d338ea5
Added DropDownItem.
So that drop down items can be highlighted as they're hovered.
10 years ago
Steven Kirk
59032dcff8
Make DropDown in ControlCatalog display correctly.
11 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
Steven Kirk
d54772033b
Added DropDown theme in XAML.
Something weird is happening where selected items are removed from the
tree somehow.
11 years ago
Steven Kirk
53926a47bf
Refactored ItemContainerGenerator<T>.
To allow TreeItemContainerGenerator to inherit from it.
11 years ago
Steven Kirk
86cfc309a5
Make DropDown selection work again.
11 years ago