Beispiel #1
0
        //This is present to force the dataContext to be passed to the popup of the flyout since it is not directly a child in the visual tree of the flyout.
        internal protected override void OnDataContextChanged(DependencyPropertyChangedEventArgs e)
        {
            base.OnDataContextChanged(e);

            _popup?.SetValue(Popup.DataContextProperty, this.DataContext, precedence: DependencyPropertyValuePrecedences.Local);
        }