mirror of
https://gitee.com/chinware/atomui.git
synced 2024-11-29 18:38:16 +08:00
AtomLayer uses VisualLayerManager as second choice for host
This commit is contained in:
parent
86491701d0
commit
bc2039b3d1
2
src/AtomUI.Controls/AtomUI.Controls.csproj.DotSettings
Normal file
2
src/AtomUI.Controls/AtomUI.Controls.csproj.DotSettings
Normal file
@ -0,0 +1,2 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=primitives_005Catomlayer/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
@ -2,6 +2,6 @@ namespace AtomUI.Controls;
|
||||
|
||||
public enum DrawerOpenMode
|
||||
{
|
||||
Overlay,
|
||||
Push,
|
||||
Overlay = 0,
|
||||
Push = 1,
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.Presenters;
|
||||
using Avalonia.Controls.Primitives;
|
||||
using Avalonia.Layout;
|
||||
using Avalonia.VisualTree;
|
||||
|
||||
@ -25,6 +26,8 @@ public static class AtomLayerExtension
|
||||
}
|
||||
}
|
||||
|
||||
host ??= target.FindAncestorOfType<VisualLayerManager>();
|
||||
|
||||
host ??= TopLevel.GetTopLevel(target);
|
||||
|
||||
if (host == null)
|
||||
|
Loading…
Reference in New Issue
Block a user