Skip to content

Commit

Permalink
fix: Prevent FrameView DataContext propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
eriklimakc committed Aug 12, 2024
1 parent f677bd2 commit c33df02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Uno.Extensions.Navigation.UI/Controls/FrameView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public sealed partial class FrameView : UserControl
public FrameView()
{
InitializeComponent();

// Prevent inheritance of DataContext from Parent to avoid propagation to Children
DataContext = null;
}

/// <summary>
Expand Down

0 comments on commit c33df02

Please sign in to comment.