Dan Walmsley
4762b8ec33
fix whitespace.
7 years ago
Dan Walmsley
27e1b9d0f5
check selectedindex instead of _selectedItem
7 years ago
Dan Walmsley
79ecf98a46
add null check to itemvirtualizer simple
7 years ago
Steven Kirk
25ebbd63be
Allow both SelectedItem and SelectedItems to be bound.
Fixes #2969 .
7 years ago
Steven Kirk
1f9bb75ed3
Add setter for ListBox.SelectedItems.
It had been erroneously omitted.
7 years ago
Dan Walmsley
05b580317c
fix crash scrolling to view when clearing list.
7 years ago
Dariusz Komosiński
7237fa979e
Add comments.
7 years ago
Dariusz Komosiński
7f33ffaf8b
Avoid allocations when running UpdateIsEffectivelyEnabled.
7 years ago
Steven Kirk
13333cd820
Avoid NRE in DefaultMenuInteractionHandler.
The input can arrive after the interaction handler has already been detached.
7 years ago
Steven Kirk
fc33d6978c
Fix DevTools crash.
Make sure `HeaderPresenter` has its template applied before trying to get its child.
7 years ago
Dan Walmsley
9e6d3db520
fix whitespace.
7 years ago
Dan Walmsley
d636c7647e
only require a single call to ScrollIntoView
7 years ago
Steven Kirk
cce605af49
Remove unused/bad code.
Removed the code that was causing the TreeView problems described in #2944 . This code was never actually called except in `TreeView` because a plain `ItemsControl` can't be used with virtualization (it uses untyped `ItemContainerGenerator` so items can't be recycled) and every other derived class derives from SelectingItemsControl which overrides this method and doesn't call the base implementation. In addition there were no unit tests covering this code.
Fixes #2944
7 years ago
Dan Walmsley
e9ae26e09c
fix scrolling to selected item.
7 years ago
Steven Kirk
0eb7b2d25e
Enable adding event handlers to Gestures events.
Added the `Add*Handler` and `Remove*Handler` events required by XAML in order to use attached event syntax. Added unit test to ensure this works.
7 years ago
Dan Walmsley
734b9f39b3
fix windows mounted listener.
7 years ago
Dan Walmsley
f56a47ed49
fix osx managed file dialogs.
7 years ago
Jumar Macato
d368d9675a
Address review.
7 years ago
Dariusz Komosinski
f5b317decb
Naming.
7 years ago
Dariusz Komosinski
5cae6bee7b
Simplify creation of invoke adapters.
7 years ago
Nikita Tsukanov
45f86a925f
Fixed possible NRE in Gestures.cs
7 years ago
Dariusz Komosinski
4a7f370fc5
Cleanup.
7 years ago
Jumar Macato
b8e4909b10
Restore Lazy Init to avoid API break.
7 years ago
Jumar Macato
64fdb5828e
un-LINQ the Transition property matching codepath.
7 years ago
Dariusz Komosinski
c37b911fe5
Seal unlock classes.
7 years ago
Dariusz Komosinski
edd6fd626f
Make sure that unlock API is still safe.
7 years ago
Dariusz Komosinski
04c2dfcc54
Compiled expressions for RoutedEvent.
7 years ago
ahopper
3dddb56982
add space after while
7 years ago
danwalmsley
66d79c025d
Update Default.xaml
7 years ago
Dan Walmsley
33f154148b
Add static method to open devtools.
7 years ago
Dariusz Komosiński
4e312e909a
Avoid constant boxing of StyledProperty default value.
7 years ago
Dariusz Komosiński
11298df527
Allow for setting up deferred setter notify handlers without extra allocations.
7 years ago
Dariusz Komosinski
50a8fc3571
Get rid of pointless allocations in PriorityBindingEntry.
7 years ago
Dariusz Komosinski
54399d2a51
Use ValueTuple instead of Tuple to reduce alocations. Invoke raise callback without reflection.
7 years ago
Dariusz Komosiński
c619d1f0d4
Cache delegate used for hit testing.
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
Steven Kirk
bd354143ca
Notify MouseDevice when TopLevel closed.
So it can remove pointerover state.
7 years ago
Steven Kirk
5de0bf5fec
Fix AlwaysSelected selected state.
Fixes #2901 . Two things needed to be done here:
- When an item is removed, causing indexes to be reassigned, raise `Recycled` so that `SelectingItemsControl` knows to update the selection state
- Update selection state in `SelectingItemsControl` when the selected item changes, but the selected index does not (due to an item being remove)
7 years ago
ahopper
112484d7e4
reduce allocation, cache Inherited props,remove duplicate events
7 years ago
ahopper
26b1320971
reduce repeated field access
7 years ago
Dariusz Komosinski
a9da85e4ae
Avoid per-frame allocations in renderer lock.
7 years ago
Dariusz Komosinski
394b8f77b7
Get rid of allocations in Rect.TransformToAABB.
7 years ago
Steven Kirk
02ebded6a2
Don't bring hidden controls into view.
7 years ago
Dariusz Komosiński
a1ee8d98eb
"Fix" TreeView SelectedItems causing side effects and resetting selection.
7 years ago
ahopper
4d8973226d
unbreak lazy initialization of Values
7 years ago
ahopper
77d9ae1cac
change UnChecked suffix to Unchecked
7 years ago
Dariusz Komosinski
addc1ddce2
Avoid initializing properties if there is no observer. Optimize access.
7 years ago
Jumar Macato
d176b1d7dc
Fix unit tests.
7 years ago
ahopper
e8ba46160d
UnChecked suffix fixed
7 years ago
ahopper
ebccccb8e4
add UnChecked suffix
7 years ago