Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara authored and PureWeen committed Jan 10, 2024
1 parent 8e97a93 commit 83ec31d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ public override void CellDisplayingEnded(UICollectionView collectionView, UIColl
// We want to unbind a cell that is no longer present in the items source. Unfortunately
// it's too expensive to check directly, so let's check that the current binding context
// matches the item at a given position.
//
//var itemIndex = ViewController?.ItemsSource.GetIndexForItem(bindingContext);
//if (itemIndex.Item == -1)
// templatedCell.Unbind();

var itemsSource = ViewController?.ItemsSource;
if (itemsSource is null ||
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected void ClearConstraints()
ConstrainedDimension = default;
}

public void Unbind()
internal void Unbind()
{
if (PlatformHandler?.VirtualView is View view)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ virtual Microsoft.Maui.Controls.DragStartingEventArgs.GetPosition(Microsoft.Maui
virtual Microsoft.Maui.Controls.DropEventArgs.GetPosition(Microsoft.Maui.Controls.Element? relativeTo) -> Microsoft.Maui.Graphics.Point?
*REMOVED*override Microsoft.Maui.Controls.RefreshView.MeasureOverride(double widthConstraint, double heightConstraint) -> Microsoft.Maui.Graphics.Size
Microsoft.Maui.Controls.Border.~Border() -> void
Microsoft.Maui.Controls.Handlers.Items.TemplatedCell.Unbind() -> void
Microsoft.Maui.Controls.IWindowCreator
Microsoft.Maui.Controls.IWindowCreator.CreateWindow(Microsoft.Maui.Controls.Application! app, Microsoft.Maui.IActivationState? activationState) -> Microsoft.Maui.Controls.Window!
Microsoft.Maui.Controls.Handlers.Compatibility.PhoneFlyoutPageRenderer.FlyoutOverlapsDetailsInPopoverMode.get -> bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ virtual Microsoft.Maui.Controls.DragStartingEventArgs.GetPosition(Microsoft.Maui
virtual Microsoft.Maui.Controls.DropEventArgs.GetPosition(Microsoft.Maui.Controls.Element? relativeTo) -> Microsoft.Maui.Graphics.Point?
*REMOVED*override Microsoft.Maui.Controls.RefreshView.MeasureOverride(double widthConstraint, double heightConstraint) -> Microsoft.Maui.Graphics.Size
Microsoft.Maui.Controls.Border.~Border() -> void
Microsoft.Maui.Controls.Handlers.Items.TemplatedCell.Unbind() -> void
Microsoft.Maui.Controls.IWindowCreator
Microsoft.Maui.Controls.IWindowCreator.CreateWindow(Microsoft.Maui.Controls.Application! app, Microsoft.Maui.IActivationState? activationState) -> Microsoft.Maui.Controls.Window!
Microsoft.Maui.Controls.Handlers.Compatibility.PhoneFlyoutPageRenderer.FlyoutOverlapsDetailsInPopoverMode.get -> bool
Expand Down

0 comments on commit 83ec31d

Please sign in to comment.