You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using material theme, right clicking a node causes an exception :
When switching to fluent theme the menu opens correctly.
System.InvalidOperationException: ControlTemplate styles cannot contain multiple template selectors.
at Avalonia.Styling.Selector.ValidateNestingSelector(Boolean inControlTheme)
at Avalonia.Styling.Style.SetParent(StyleBase parent)
at Avalonia.Styling.StyleChildren.InsertItem(Int32 index, IStyle item)
at System.Collections.ObjectModel.Collection`1.Add(T item)
at Avalonia.Styling.StyleBase.Add(IStyle style)
at CompiledAvaloniaXaml.!AvaloniaResources.XamlClosure_181.Build(IServiceProvider )
at Avalonia.Markup.Xaml.XamlIl.Runtime.XamlIlRuntimeHelpers.<>c__DisplayClass1_0`1.<DeferredTransformationFactoryV2>b__0(IServiceProvider sp)
at Avalonia.Controls.ResourceDictionary.TryGetValue(Object key, Object& value)
at Avalonia.Controls.ResourceDictionary.TryGetResource(Object key, ThemeVariant theme, Object& value)
at Avalonia.Markup.Xaml.MarkupExtensions.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
at CompiledAvaloniaXaml.!AvaloniaResources.XamlClosure_183.Build(IServiceProvider )
at Avalonia.Markup.Xaml.XamlIl.Runtime.XamlIlRuntimeHelpers.<>c__DisplayClass1_0`1.<DeferredTransformationFactoryV2>b__0(IServiceProvider sp)
at Avalonia.Controls.ResourceDictionary.TryGetValue(Object key, Object& value)
at Avalonia.Controls.ResourceDictionary.TryGetResource(Object key, ThemeVariant theme, Object& value)
at Avalonia.Controls.ResourceDictionary.TryGetResource(Object key, ThemeVariant theme, Object& value)
at Avalonia.Styling.Styles.TryGetResource(Object key, ThemeVariant theme, Object& value)
...
Is material avalonia compatible with tree view context menu's ? is there something more to do to make it ok ?
Thanks for all your great work.
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to add a context menu on a tree view node :
full example is here : b3b00/avaloniaMaterialContextMenu
When using material theme, right clicking a node causes an exception :
When switching to fluent theme the menu opens correctly.
Is material avalonia compatible with tree view context menu's ? is there something more to do to make it ok ?
Thanks for all your great work.
The text was updated successfully, but these errors were encountered: