Skip to content

Commit

Permalink
TabHostView: log/debug some events
Browse files Browse the repository at this point in the history
  • Loading branch information
janusw committed Oct 8, 2024
1 parent 987a75c commit 2b22633
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Tabs/Tabs/TabHostView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ public TabHostView()

Tabs.CollectionChanged += OnTabsCollectionChanged;

HandlerChanged += TabHostView_HandlerChanged;
Loaded += TabHostView_Loaded;
Unloaded += TabHostView_Unloaded;

#if NET6_0_OR_GREATER
base.BackgroundColor = Colors.Transparent;
#else
Expand Down Expand Up @@ -177,6 +181,21 @@ public TabHostView()
#endif
}

private void TabHostView_HandlerChanged(object sender, EventArgs e)
{
InternalLogger.Debug(Tag, () => $"HandlerChanged!");
}

private void TabHostView_Loaded(object sender, EventArgs e)
{
InternalLogger.Debug(Tag, () => $"Loaded!");
}

private void TabHostView_Unloaded(object sender, EventArgs e)
{
InternalLogger.Debug(Tag, () => $"Unloaded!");
}

public event EventHandler<SelectedPositionChangedEventArgs> SelectedTabIndexChanged;

public IEnumerable ItemsSource
Expand Down

0 comments on commit 2b22633

Please sign in to comment.