Dariusz Komosinski
3030427c07
Fix unsubscribe not doing anything due to wrong check.
7 years ago
Dan Walmsley
2afa74e628
include drive letter on windows.
7 years ago
Jumar Macato
f4100fd8a4
Set Path as name if there's no volume label.
7 years ago
Jumar Macato
9de04b3297
Fix drive enumeration crash on Windows's Managed File Dialog.
7 years ago
Keroosha
08976e81c7
Use screen bounds if woking area is empty
7 years ago
Dariusz Komosiński
d409090b90
Fix unit tests. Remove default ctor.
7 years ago
Dariusz Komosiński
2362b5a847
Cleanup KeyGesture code. Add constructor taking non-deprecated arguments.
7 years ago
Dan Walmsley
bdca92c16a
dont handle f10 key in accesskey handler, prevents people using f10 hotkey.
7 years ago
Dan Walmsley
91279db308
apply fix to reversible stackpanel.
7 years ago
Dan Walmsley
69fa0f7f28
stackpanel copes with non-visible controls when arranging.
7 years ago
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
Dariusz Komosiński
f0a9de18ac
Remove lambda closure allocations. Optimize search for conversion operator.
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
Benedikt Schroeder
3de1d66ada
Register RadioButton for GroupName every time it is attached to the visual tree.
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