Browse Source

Use popup theme instead of target, as it is correct

pull/10149/head
Max Katz 4 years ago
parent
commit
cbcff7bf1d
  1. 2
      src/Avalonia.Controls/Primitives/Popup.cs

2
src/Avalonia.Controls/Primitives/Popup.cs

@ -392,7 +392,7 @@ namespace Avalonia.Controls.Primitives
topLevelPopup topLevelPopup
.Bind( .Bind(
ThemeVariantScope.ActualThemeVariantProperty, ThemeVariantScope.ActualThemeVariantProperty,
placementTarget.GetBindingObservable(ThemeVariantScope.ActualThemeVariantProperty)) this.GetBindingObservable(ThemeVariantScope.ActualThemeVariantProperty))
.DisposeWith(handlerCleanup); .DisposeWith(handlerCleanup);
} }

Loading…
Cancel
Save