-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(combobox)!: Make ComboBox inherit from Selector
BREAKING CHANGE: ComboBox now inherits from Selector rather than ListViewBase, to match the UWP/WinUI inheritance hierarchy.
- Loading branch information
1 parent
08a0c62
commit 63f35c3
Showing
7 changed files
with
120 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/Uno.UI/UI/Xaml/Controls/Primitives/Selector.managed.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#if UNO_REFERENCE_API || __MACOS__ | ||
using Uno.UI.Controls; | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Uno.Extensions; | ||
using System.Collections.Specialized; | ||
using Uno.Extensions.Specialized; | ||
using System.Diagnostics; | ||
using Uno.UI; | ||
using Uno.Disposables; | ||
using Windows.UI.Xaml.Data; | ||
using Uno.UI.DataBinding; | ||
using Windows.Foundation.Collections; | ||
|
||
namespace Windows.UI.Xaml.Controls.Primitives | ||
{ | ||
partial class Selector | ||
{ | ||
private protected IVirtualizingPanel VirtualizingPanel => ItemsPanelRoot as IVirtualizingPanel; | ||
|
||
private protected override bool ShouldItemsControlManageChildren => !(ItemsPanelRoot is IVirtualizingPanel); | ||
|
||
partial void RefreshPartial() | ||
{ | ||
if (VirtualizingPanel != null) | ||
{ | ||
VirtualizingPanel.GetLayouter().Refresh(); | ||
|
||
InvalidateMeasure(); | ||
} | ||
} | ||
} | ||
} | ||
#endif |