Skip to content

Commit

Permalink
Changing name
Browse files Browse the repository at this point in the history
  • Loading branch information
prathameshnarkhede committed Sep 3, 2024
1 parent 4d8c05c commit 9660568
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Toolkit/Toolkit.Maui/BookmarksView/BookmarksView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public BookmarksView()
protected override void OnApplyTemplate()
{
base.OnApplyTemplate();
UpdateListView();
UpdatePresentingView();
}

/// <summary>
Expand Down Expand Up @@ -147,7 +147,7 @@ private static void GeoViewChanged(BindableObject sender, object? oldValue, obje
private static void ItemTemplateChanged(BindableObject sender, object? oldValue, object? newValue)
{
BookmarksView bookmarkView = (BookmarksView)sender;
bookmarkView.UpdateListView();
bookmarkView.UpdatePresentingView();
}

/// <summary>
Expand Down Expand Up @@ -182,7 +182,7 @@ private void Internal_bookmarkSelected(object? sender, SelectionChangedEventArgs
}
}

private void UpdateListView()
private void UpdatePresentingView()
{
var collection = (CollectionView)GetTemplateChild(_presentingViewName);
if (collection != null)
Expand All @@ -199,7 +199,7 @@ private void OnBookmarksCollectionChanged(object? sender, NotifyCollectionChange
{
if (e.Action is NotifyCollectionChangedAction.Add)
{
UpdateListView();
UpdatePresentingView();
}
}

Expand Down

0 comments on commit 9660568

Please sign in to comment.