Dariusz Komosinski
85d309830a
TreeView multiple selection support.
7 years ago
Andrey Kunchev
daadd9c674
support member selector when recycling Dropdown/listboxitems
8 years ago
Andrey Kunchev
889156df43
fixes #1971 listbox toggle selection
8 years ago
Steven Kirk
d0b77ecca1
Update before calling base.EndInit.
Fixes #1932 .
8 years ago
wojciech krysiak
57058f19cd
Fix SelectedItemsChanged event arguments in SelectingItemsControl
8 years ago
Miha Markič
1524cb1aba
Spellchecks comments and members, removes unused using statements and sorts them
8 years ago
Steven Kirk
1293e9af8d
Implemented Menu interactions.
8 years ago
wojciech krysiak
cdf8d1f8b4
Fix For incorrect handling of NotifyCollectionChangedAction.Reset from IReactiveDerivedList<>
8 years ago
Dan Walmsley
6eb80bd55c
fix broken logic.
8 years ago
Dan Walmsley
ae4356ef34
add fix for selecting items control.
8 years ago
Steven Kirk
2f7a578c38
Added null check for panel.
Problem reared its head when #1709 was fixed.
8 years ago
Jeremy Koritzinsky
05eda280de
Refactor DeferredSetter logic to allow passing references to backing fields and utilizing that in all usages. Refactor SetAndRaise logic to be combined and simplified between the two use cases. Now the common case delegates to the less specialized case.
9 years ago
Jeremy Koritzinsky
ca9a4c4128
PR Feedback.
9 years ago
Goldy
6dd497bbc8
Code improvement
Removed unused or duplicated code
9 years ago
Jeremy Koritzinsky
8acf94d3e4
Fix bug in DelayedSetter and change recursive delayed setting to prevent possible issues down the road.
9 years ago
Jeremy Koritzinsky
440f2cafc5
Fix SelectedItemsControl and RangeBase Stackoverflow bugs.
9 years ago
Jeremy Koritzinsky
8eb355e99d
Fix SelectedItem stack overflow bug. Changes of this pattern are basically required for any direct property that is not using SetAndRaise.
9 years ago
Steven Kirk
181dd53e58
Notify DataContextChanged down tree.
When a data context changes, it should be notified to all descendant controls who inherit the data context. This allows the `SelectingItemsControl` to defer setting the selected item until the `DataContext` has changed for the whole tree.
Renamed `OnDataContextChanging`/`OnDataContextChanged` to `OnDataContextBeginUpdate`/`OnDataContextEndUpdate` because `DataContextChanged` is now called from the property changed notification.
Fixes #507 .
9 years ago
Steven Kirk
95eefa3cf1
Implement AutoScrollToSelectedItem
For virtualizing lists.
10 years ago
Steven Kirk
2c8d8179e5
Fix virtualized item selection.
So that recycled items' selection state is set correctly.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
d8cf474274
Clear TabOnceActiveElement on removed container.
10 years ago
Steven Kirk
004ed96de5
Prevent nested selection changing parent selection.
Added previously failing
Nested_ListBox_Does_Not_Change_Parent_SelectedIndex test to check it.
10 years ago
Steven Kirk
d1fcb2f5a6
Fixed failing tests.
10 years ago
Steven Kirk
30266420c4
Don't assign an array to SelectedItems.
And add a check should the user try to do that.
10 years ago
Steven Kirk
f7f4f6492c
Fix #500 .
When updating DataContext, defer changes to SelectedIndex/Items until
after DataContext has finished changing. Use the same method between
BeginInit and EndInit meaning that [DependsOn] is no longer needed.
10 years ago
Steven Kirk
d0dc103c5e
Supply UnsetValue for DirectProperty.
When a direct property is set to UnsetValue, previously it used
default(TValue). Allow that value to be overridden and make it be -1 for
SelectingItemsControl.SelectedIndex.
10 years ago
Steven Kirk
21ae855a06
Supply UnsetValue for DirectProperty.
When a direct property is set to UnsetValue, previously it used
default(TValue). Allow that value to be overridden and make it be -1 for
SelectingItemsControl.SelectedIndex.
10 years ago
danwalmsley
979c5affb8
corrected default binding mode for checkbox, treeview itemms and selected items.
10 years ago
Steven Kirk
6f32c868d9
SelectingItemsControl.AutoScrollToSelectedItem
Added SelectingItemsControl.AutoScrollToSelectedItem. Closes #363 .
10 years ago
Steven Kirk
2384b13446
Added DependsOn attributes.
10 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
10 years ago
Steven Kirk
1841e7ad7a
Start allowing Setters to contain bindings.
This is needed so that things like the following can be done:
<TreeView>
<TreeView.Styles>
<Style Selector="TreeViewItem">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"/>
</Style>
</TreeView.Styles>
<TreeView>
(At the moment we have TreeDataTemplate.IsExpanded but this isn't good
enough: it only supports setting IsExpanded on creation of the item with
no binding.)
With this commit, setters can now contain bindings, but they aren't yet
applied correctly. As part of this commit, classes related to binding
have been moved to the Perspex.Data namespace.
10 years ago
Steven Kirk
7adc902b99
Handle null content in TabControl.
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
c49201b8cb
Added SelectingItemsControl.SelectionChanged event.
10 years ago
Steven Kirk
db1e20acc8
Only allow pseudoclasses to be set by control.
Limit adding/removing pseudoclasses to IPseudoClasses interface.
11 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
8172d8214f
Use a naive implementation of StyleActivator.
As previous one was buggy and leaked.
11 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
11 years ago
Steven Kirk
195fb6df3b
Renamed OnDataContextFinishedChanging
To OnDataContextChanged and added DataContextChanged event.
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Steven Kirk
52b6c0feac
Fixed TemplatedParent binding.
Was doing stupid stuff before.
11 years ago
Steven Kirk
d273958bd3
Correctly compare items.
11 years ago
Steven Kirk
53926a47bf
Refactored ItemContainerGenerator<T>.
To allow TreeItemContainerGenerator to inherit from it.
11 years ago
Steven Kirk
5b307f653d
Fix spurious selection changes.
In SelectingItemsControl. This was causing TabControls with transitions
to break.
11 years ago
Steven Kirk
e824458a00
Fix DataContext binding problem with SelectedItems.
This one has to be solved in SelectingItemsControl as the property is
not updated via a binding.
11 years ago
Steven Kirk
6401cec2ef
Make SelectedItems a plain IList
As IList<T> is not covariant.
11 years ago
Steven Kirk
c0dff57a78
Make SelectedItems bindable.
And to avoid confusion removed SelectedIndexes.
11 years ago
Steven Kirk
05aed57daa
Fix selecting backwards ranges.
11 years ago