|
|
|
@ -54,6 +54,8 @@ namespace Avalonia.Markup.Xaml.MarkupExtensions |
|
|
|
|
|
|
|
if(anchor is null) |
|
|
|
{ |
|
|
|
// Try to find IDataContextProvider, this was added to allow us to find
|
|
|
|
// a datacontext for Application class when using NativeMenuItems.
|
|
|
|
anchor = context.GetFirstParent<IDataContextProvider>(); |
|
|
|
} |
|
|
|
|
|
|
|
|