Skip to content

Commit

Permalink
chore: Internally implement Selector methods
Browse files Browse the repository at this point in the history
  • Loading branch information
morning4coffe-dev authored and MartinZikmund committed Jun 17, 2024
1 parent 3c2e0f7 commit 3c49843
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/Uno.UI/UI/Xaml/Controls/Primitives/Selector_Partial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Windows.Foundation.Collections;
using Microsoft.UI.Xaml.Data;
using Uno.Disposables;
using Microsoft.UI.Xaml.Input;

namespace Microsoft.UI.Xaml.Controls.Primitives;

Expand Down Expand Up @@ -306,4 +307,37 @@ internal virtual void NotifyListItemSelected(SelectorItem pSelectorItem, bool ol
// // SelectionChanged event handler
// return S_OK;
}

/// <summary>
/// Handles selection of single item, and only that item
/// </summary>
internal void MakeSingleSelection(int index, bool animateIfBringIntoView, object selectedItem, FocusNavigationDirection focusNavigationDirection)
{
//UNO TODO: Implement SelectJustThisItemInternal on Selector
//SelectJustThisItemInternal(SelectedIndex, index, selectedItem, animateIfBringIntoView, focusNavigationDirection);
}

internal void ScrollIntoViewInternal(object item, bool isHeader, bool isFooter, bool isFromPublicAPI, ScrollIntoViewAlignment alignment, double offset, bool animateIfBringIntoView)
{
//UNO TODO: Implement ScrollIntoViewInternal on Selector
}

internal void AutomationPeerAddToSelection(int index, object item)
{
//UNO TODO: Implement AutomationPeerAddToSelection on Selector
}

internal void AutomationPeerRemoveFromSelection(int index, object item)
{
//UNO TODO: Implement AutomationPeerRemoveFromSelection on Selector
}

internal bool AutomationPeerIsSelected(object item)
{
//UNO TODO: Implement AutomationPeerIsSelected on Selector

return false;
}

internal bool IsSelectionPatternApplicable() => true;
}

0 comments on commit 3c49843

Please sign in to comment.